Skip to content

Commit

Permalink
Applied workaround to github workspace issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kardbord committed Jun 6, 2024
1 parent ee42102 commit 8327c29
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
steps:
- uses: actions/checkout@v4

# Necessary due to https://github.com/actions/runner/issues/2058
- name: Save workspace to environment
run: echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" >> $GITHUB_ENV

- name: Update package cache
run: apt update -y

Expand All @@ -66,7 +70,7 @@ jobs:
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
echo "build-output-dir=${{ env.GITHUB_WORKSPACE }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: >
Expand All @@ -76,7 +80,7 @@ jobs:
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DSPICY_PROTOBUF_TEST=ON
-S ${{ github.workspace }}
-S ${{ env.GITHUB_WORKSPACE }}
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
Expand Down

0 comments on commit 8327c29

Please sign in to comment.