mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-04 21:01:07 +00:00
Updated workflow as requested
This commit is contained in:
parent
620731c8e8
commit
731aad106d
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
@ -45,32 +45,24 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
shared: [0, 1]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
os_name: linux
|
||||
shared: 0
|
||||
- os: ubuntu-latest
|
||||
os_name: linux
|
||||
shared: 1
|
||||
os_name: Linux
|
||||
os_name_lowercase: linux
|
||||
- os: macos-latest
|
||||
os_name: macos
|
||||
shared: 0
|
||||
- os: macos-latest
|
||||
os_name: macos
|
||||
shared: 1
|
||||
os_name: MacOS
|
||||
os_name_lowercase: macos
|
||||
- os: windows-latest
|
||||
os_name: windows
|
||||
shared: 0
|
||||
- os: windows-latest
|
||||
os_name: windows
|
||||
shared: 1
|
||||
os_name: Windows
|
||||
os_name_lowercase: windows
|
||||
name: Build ${{ matrix.os_name }} (${{ matrix.shared == 0 && 'Static' || 'Shared' }})
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies (Windows only)
|
||||
if: matrix.os_name == 'windows'
|
||||
if: matrix.os_name_lowercase == 'windows'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
update: true
|
||||
@ -82,14 +74,14 @@ jobs:
|
||||
make
|
||||
|
||||
- name: Build
|
||||
if: matrix.os_name == 'windows'
|
||||
if: matrix.os_name_lowercase == 'windows'
|
||||
shell: msys2 {0}
|
||||
env:
|
||||
SHARED: ${{ matrix.shared }}
|
||||
run: make
|
||||
|
||||
- name: Build
|
||||
if: matrix.os_name != 'windows'
|
||||
if: matrix.os_name_lowercase != 'windows'
|
||||
env:
|
||||
SHARED: ${{ matrix.shared }}
|
||||
run: make
|
||||
@ -97,5 +89,5 @@ jobs:
|
||||
- name: Generate artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: hashcat-${{ matrix.os_name }}-${{ matrix.shared == 0 && 'static' || 'shared' }}
|
||||
name: hashcat-${{ matrix.os_name_lowercase }}-${{ matrix.shared == 0 && 'static' || 'shared' }}
|
||||
path: ${{ env.include_paths }}
|
||||
|
Loading…
Reference in New Issue
Block a user