Skip to content

Commit

Permalink
cargo cache in linux ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Macil committed Feb 14, 2023
1 parent 2ba6915 commit c680afd
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,25 @@ jobs:
push: false
cache-from: type=gha
cache-to: type=gha
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
rust/target/
key: ubuntu-18.04-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
ubuntu-18.04-cargo-
- name: Build vkQuake
run: docker run --rm --privileged -e VERSION=${GITHUB_SHA::8} -v ${PWD}:/usr/src/vkQuake build-vkquake /usr/src/vkQuake/Packaging/AppImage/run-in-docker.sh
run: docker run --rm --privileged -e VERSION=${GITHUB_SHA::8} -v ~/.cargo:/cargo -v "${PWD}:/usr/src/vkQuake" build-vkquake /usr/src/vkQuake/Packaging/AppImage/run-in-docker.sh
- name: Upload vkQuake
uses: actions/upload-artifact@v3
with:
name: vkQuake archive
path: Packaging/AppImage/*.tar.gz
- name: Prepare cargo cache
run: sudo chown -R $USER ~/.cargo rust/target

0 comments on commit c680afd

Please sign in to comment.