-
Notifications
You must be signed in to change notification settings - Fork 354
75 lines (71 loc) · 1.79 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Build Hashcat Utils
on:
push:
branches:
- master
tags:
- v*
paths:
- 'src/**'
- '.github/workflows/build.yml'
pull_request:
branches:
- master
paths:
- 'src/**'
- '.github/workflows/build.yml'
jobs:
build-linux:
strategy:
fail-fast: false
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cd src/ && make
- name: Generate artifacts
uses: actions/upload-artifact@v3
with:
name: hashcat-utils-linux
path: src/*.bin
build-macos:
strategy:
fail-fast: false
name: Build macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cd src/ && make
- name: Generate artifacts
uses: actions/upload-artifact@v3
with:
name: hashcat-utils-macos
path: src/*.bin
build-windows:
strategy:
fail-fast: false
name: Build Windows
runs-on: windows-latest
steps:
- name: Install MSys2
uses: msys2/setup-msys2@v2
with:
update: true
install: |
make
mingw-w64-x86_64-gcc
- uses: actions/checkout@v3
# Paths aren't correct in MSys2 for mingw, copy to the correct path for the Makefile
- name: Copy CRT_glob.o
shell: msys2 {0}
run: mkdir -p D:/a/_temp/msys64/usr/x86_64-w64-mingw32/lib && cp D:/a/_temp/msys64/mingw64/lib/CRT_glob.o D:/a/_temp/msys64/usr/x86_64-w64-mingw32/lib/CRT_glob.o
- name: Build
shell: msys2 {0}
run: cd src/ && make windows
- name: Generate artifacts
uses: actions/upload-artifact@v3
with:
name: hashcat-utils-windows
path: src/*.exe