Skip to content

Commit

Permalink
chore(CI):
Browse files Browse the repository at this point in the history
 - improve apt cache
  • Loading branch information
thib3113 committed May 20, 2024
1 parent 3a94077 commit 0694298
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
cache-apt:
runs-on: ubuntu-latest
steps:
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
version: 1.0
packages: build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

prepare:
needs: [cache-apt]
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -54,6 +63,7 @@ jobs:
run: pnpm install

list-packages:
needs: [cache-apt]
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ jobs:
contents: read
security-events: write

cache-apt:
runs-on: ubuntu-latest
steps:
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
version: 1.0
packages: build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

prepare:
needs: [cache-apt]
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -59,6 +68,7 @@ jobs:

list-packages:
runs-on: ubuntu-latest
needs: [cache-apt]
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
Expand Down

0 comments on commit 0694298

Please sign in to comment.