Skip to content

Commit

Permalink
workflow fix attempt 3
Browse files Browse the repository at this point in the history
  • Loading branch information
bkietz committed Oct 24, 2024
1 parent 3b3bc88 commit 077a89c
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: seanmiddleditch/gha-setup-ninja@v5

- uses: KyleMayes/install-llvm-action@v2
with:
version: 18
- uses: flox/install-flox-action@v2

- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
Expand All @@ -53,17 +49,24 @@ jobs:
echo "build-output-dir=${{ github.workspace }}/.build" >> "$GITHUB_OUTPUT"
- name: Run Maud
working-directory: ${{ github.workspace }}
run: >
cmake -P cmake_modules/maud_cli.cmake --
--log-level=VERBOSE
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
--generate-only
uses: flox/activate-action@1
with:
command: >
cmake -P cmake_modules/maud_cli.cmake --
--log-level=VERBOSE
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
--generate-only
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Debug
uses: flox/activate-action@1
with:
command: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Debug

- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ctest --build-config Debug
uses: flox/activate-action@1
with:
command: >
ctest --build-config Debug
--test-dir {{ steps.strings.outputs.build-output-dir }}
--output-on-failure

0 comments on commit 077a89c

Please sign in to comment.