Skip to content

Commit ddb6039

Browse files
committed
update gcc cache
1 parent 28d0d19 commit ddb6039

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/test_linux.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,22 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@v4
4242

43-
- name: "Set gcc version output"
43+
- name: "Set GCC version output"
4444
id: gcc-version
4545
run: |
46-
echo "::set-output name=version::${GCC_VERSION}"
46+
echo "::set-output version=version::${GCC_VERSION}"
4747
4848
- name: "Cache GCC build"
4949
id: gcc-cache
5050
uses: actions/cache@v4
5151
with:
52-
path: |
53-
"**/external/gcc"
52+
path: "external/gcc/gcc-${{steps.gcc-version.outputs.version}}"
5453
key: ${{ runner.os }}-gcc-${{steps.gcc-version.outputs.version}}
55-
restore-keys: |
56-
${{ runner.os }}-gcc-
5754

58-
#- name: "Build GCC from source"
59-
# if: steps.cache-gcc.outputs.cache-hit != 'true'
60-
# shell: bash
61-
# run: bash ./scripts/build_gcc.sh --version "$GCC_VERSION"
55+
- name: "Build GCC from source"
56+
if: steps.gcc-cache.outputs.cache-hit != 'true'
57+
shell: bash
58+
run: bash ./scripts/build_gcc.sh --version "$GCC_VERSION"
6259

6360
- name: "Install AutonomySim Dependencies"
6461
shell: bash

0 commit comments

Comments
 (0)