From 731aad106deb08af70b14a5f7d0ae42ef1adb8b8 Mon Sep 17 00:00:00 2001 From: Nripesh Niketan Date: Wed, 4 Dec 2024 17:45:51 +0000 Subject: [PATCH] Updated workflow as requested --- .github/workflows/build.yml | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4dbbda26f..aace6f77b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }}