Skip to content

Commit

Permalink
build: cache docker images in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mahor1221 committed Jul 9, 2024
1 parent 880bcef commit 9c670be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ jobs:
uses: taiki-e/install-action@v2
with:
tool: cross
# cache cross docker images
- uses: ScribeMD/docker-cache@0.5.0
with:
key: docker-${{ matrix.target }}

- name: Check build
if: success() || failure()
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ jobs:
with:
tool: cargo-deb,cross

- name: Install prerequisites
shell: bash
run: |
case ${{ matrix.target }} in
aarch64-unknown-linux-gnu)
sudo apt-get -y update
sudo apt-get -y install gcc-aarch64-linux-gnu;;
esac
- name: Download the assets
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 9c670be

Please sign in to comment.