mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-07 22:31:04 +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:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
shared: [0, 1]
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
os_name: linux
|
os_name: Linux
|
||||||
shared: 0
|
os_name_lowercase: linux
|
||||||
- os: ubuntu-latest
|
|
||||||
os_name: linux
|
|
||||||
shared: 1
|
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
os_name: macos
|
os_name: MacOS
|
||||||
shared: 0
|
os_name_lowercase: macos
|
||||||
- os: macos-latest
|
|
||||||
os_name: macos
|
|
||||||
shared: 1
|
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
os_name: windows
|
os_name: Windows
|
||||||
shared: 0
|
os_name_lowercase: windows
|
||||||
- os: windows-latest
|
|
||||||
os_name: windows
|
|
||||||
shared: 1
|
|
||||||
name: Build ${{ matrix.os_name }} (${{ matrix.shared == 0 && 'Static' || 'Shared' }})
|
name: Build ${{ matrix.os_name }} (${{ matrix.shared == 0 && 'Static' || 'Shared' }})
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies (Windows only)
|
- name: Install dependencies (Windows only)
|
||||||
if: matrix.os_name == 'windows'
|
if: matrix.os_name_lowercase == 'windows'
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
update: true
|
update: true
|
||||||
@ -82,14 +74,14 @@ jobs:
|
|||||||
make
|
make
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: matrix.os_name == 'windows'
|
if: matrix.os_name_lowercase == 'windows'
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
env:
|
env:
|
||||||
SHARED: ${{ matrix.shared }}
|
SHARED: ${{ matrix.shared }}
|
||||||
run: make
|
run: make
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: matrix.os_name != 'windows'
|
if: matrix.os_name_lowercase != 'windows'
|
||||||
env:
|
env:
|
||||||
SHARED: ${{ matrix.shared }}
|
SHARED: ${{ matrix.shared }}
|
||||||
run: make
|
run: make
|
||||||
@ -97,5 +89,5 @@ jobs:
|
|||||||
- name: Generate artifacts
|
- name: Generate artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
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 }}
|
path: ${{ env.include_paths }}
|
||||||
|
Loading…
Reference in New Issue
Block a user