Skip to content

Commit

Permalink
ci: improve workaround for rust-lang/cargo#8719
Browse files Browse the repository at this point in the history
Our arm64 alpine job was taking too long, and it is likely that
the host VM was under memory pressure. Ensure the VM has enough
swap space to complete the build, and use an improved workaround
from madiele/vod2pod-rss.
  • Loading branch information
cbs228 committed Jan 20, 2024
1 parent cdb7b4a commit ab92d60
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
BUILD_RUST_TAG: 1.70.0
BUILD_OS_GNU: slim-buster
BUILD_OS_MUSL: alpine
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

strategy:
matrix:
Expand Down Expand Up @@ -105,11 +106,10 @@ jobs:
enableCrossOsArchive: true
fail-on-cache-miss: true

- name: Workaround for https://github.com/rust-lang/cargo/issues/8719
run: |
sudo mkdir -p /var/lib/docker
sudo mount -t tmpfs -o size=10G none /var/lib/docker
sudo systemctl restart docker
- name: Set swap space
uses: pierotofy/set-swap-space@v1.0
with:
swap-size-gb: 10

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down

0 comments on commit ab92d60

Please sign in to comment.