From 1e7d62f6f3d39756a2fd36689ded678c74083a5a Mon Sep 17 00:00:00 2001 From: Addison Schuhardt Date: Sun, 27 Oct 2024 15:43:15 -0700 Subject: [PATCH] Update linux.yml --- .github/workflows/linux.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 5b7891f..08661d0 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -8,8 +8,6 @@ on: workflow_dispatch: env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release OUTPUT_DIR: ${{github.workspace}}/output jobs: @@ -19,6 +17,9 @@ jobs: # cross-platform coverage. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix runs-on: ubuntu-latest + strategy: + matrix: + build-type: [Release, Debug] steps: - uses: actions/checkout@v2 @@ -37,11 +38,11 @@ jobs: cmake -B ${{github.workspace}}/build \ -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=${{env.OUTPUT_DIR}} \ -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=${{env.OUTPUT_DIR}} \ - -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + -DCMAKE_BUILD_TYPE=${{matrix.build-type}} - name: Build # Build your program with the given configuration - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target procyon-lua + run: cmake --build ${{github.workspace}}/build --config ${{matrix.build-type}} --target procyon-lua - name: Cleanup run: rm ${{env.OUTPUT_DIR}}/genhexer @@ -65,5 +66,5 @@ jobs: - name: Upload a Build Artifact uses: actions/upload-artifact@v4 with: - name: linux-${{env.BUILD_TYPE}} + name: linux-${{matrix.build-type}} path: ${{env.OUTPUT_DIR}}