Skip to content

Commit 8327c29

Browse files
committed
Applied workaround to github workspace issue
1 parent ee42102 commit 8327c29

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/unit-tests.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
steps:
4949
- uses: actions/checkout@v4
5050

51+
# Necessary due to https://github.com/actions/runner/issues/2058
52+
- name: Save workspace to environment
53+
run: echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" >> $GITHUB_ENV
54+
5155
- name: Update package cache
5256
run: apt update -y
5357

@@ -66,7 +70,7 @@ jobs:
6670
id: strings
6771
shell: bash
6872
run: |
69-
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
73+
echo "build-output-dir=${{ env.GITHUB_WORKSPACE }}/build" >> "$GITHUB_OUTPUT"
7074
7175
- name: Configure CMake
7276
run: >
@@ -76,7 +80,7 @@ jobs:
7680
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
7781
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
7882
-DSPICY_PROTOBUF_TEST=ON
79-
-S ${{ github.workspace }}
83+
-S ${{ env.GITHUB_WORKSPACE }}
8084
8185
- name: Build
8286
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

0 commit comments

Comments
 (0)