mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 01:50:10 +00:00
Add WSL build, fix missing .so, improved artifact naming
This commit is contained in:
parent
c7965208d4
commit
0355b93238
45
.github/workflows/build.yml
vendored
45
.github/workflows/build.yml
vendored
@ -12,6 +12,7 @@ env:
|
|||||||
rules/
|
rules/
|
||||||
example*
|
example*
|
||||||
hashcat*
|
hashcat*
|
||||||
|
libhashcat*
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -44,17 +45,51 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest] # todo: windows-latest - lack of iconv development files
|
os: [ubuntu-latest, macos-latest, windows-latest] # todo: windows-latest - lack of iconv development files
|
||||||
shared: [0, 1]
|
shared: [0, 1]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout Hashcat
|
||||||
- name: Build
|
uses: actions/checkout@v3
|
||||||
|
- name: Checkout win-iconv
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
|
with:
|
||||||
|
repository: win-iconv/win-iconv
|
||||||
|
path: 'win-iconv/'
|
||||||
|
clean: false
|
||||||
|
- name: Install WSL
|
||||||
|
uses: Vampire/setup-wsl@v1
|
||||||
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
|
with:
|
||||||
|
additional-packages:
|
||||||
|
gcc-mingw-w64-x86-64
|
||||||
|
g++-mingw-w64-x86-64
|
||||||
|
make
|
||||||
|
git
|
||||||
|
patch
|
||||||
|
- name: Setup WSL
|
||||||
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
|
shell: wsl-bash {0}
|
||||||
|
run: cd win-iconv/ && patch < ../tools/win-iconv-64.diff && sudo make install
|
||||||
|
- name: Build (Win)
|
||||||
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
|
shell: wsl-bash {0}
|
||||||
|
run: make win
|
||||||
|
- name: Build (Unix)
|
||||||
|
if: ${{ matrix.os != 'windows-latest' }}
|
||||||
env:
|
env:
|
||||||
SHARED: ${{ matrix.shared }}
|
SHARED: ${{ matrix.shared }}
|
||||||
run: make
|
run: make
|
||||||
- name: Generate artifacts (shared)
|
- name: Generate static artifacts
|
||||||
|
if: ${{ matrix.shared == 0 }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hashcat-${{ matrix.os }}-${{ matrix.shared }}
|
name: hashcat-${{ runner.os }}-static
|
||||||
|
path: ${{ env.include_paths }}
|
||||||
|
- name: Generate shared artifacts
|
||||||
|
if: ${{ matrix.shared == 1 }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: hashcat-${{ runner.os }}-shared
|
||||||
path: ${{ env.include_paths }}
|
path: ${{ env.include_paths }}
|
||||||
|
Loading…
Reference in New Issue
Block a user