Skip to content

Commit

Permalink
Fix slow installation of gcc-13 by using `awalsh128/cache-apt-pkgs-…
Browse files Browse the repository at this point in the history
…action` to cache the packages.

PiperOrigin-RevId: 701998425
  • Loading branch information
gonnet authored and xnnpack-bot committed Dec 2, 2024
1 parent 66e6986 commit c535478
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -474,14 +474,16 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Install gcc-13
# Pull in gcc-13 from the ubuntu-23.10 repository since it is not available
# for ubuntu-22.04.
- name: Add repository ppa:ubuntu-toolchain-r/test for gcc-13 and g++-13
working-directory: ${{ github.workspace }}
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-13 g++-13
- name: Install gcc-13 (cached)
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: gcc-13 g++-13
version: 1.0
- name: Restore bazel cache
uses: actions/cache/restore@v4
with:
Expand Down

0 comments on commit c535478

Please sign in to comment.