Skip to content

Commit

Permalink
update gcc cache
Browse files Browse the repository at this point in the history
  • Loading branch information
admercs committed May 8, 2024
1 parent ddb6039 commit 311a2ae
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/test_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: "Set GCC version output"
id: gcc-version
run: |
echo "::set-output version=version::${GCC_VERSION}"
- name: "Cache GCC build"
id: gcc-cache
uses: actions/cache@v4
with:
path: "external/gcc/gcc-${{steps.gcc-version.outputs.version}}"
key: ${{ runner.os }}-gcc-${{steps.gcc-version.outputs.version}}
path: "./external/gcc/gcc-${GCC_VERSION}"
key: "${{runner.os}}-gcc-${GCC_VERSION}"

- name: "Build GCC from source"
if: steps.gcc-cache.outputs.cache-hit != 'true'
if: ${{steps.gcc-cache.outputs.cache-hit}} != 'true'
shell: bash
run: bash ./scripts/build_gcc.sh --version "$GCC_VERSION"

Expand Down

0 comments on commit 311a2ae

Please sign in to comment.