Cache .cargo, and copy output to separate path.

This commit is contained in:
Condorra 2023-02-12 18:23:22 +11:00
parent bc0843adfa
commit f74bc7fe6b
2 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,12 @@
#!/bin/bash -e
set -Eeuo pipefail
echo Using HOME: $HOME
cd blastmud-repo
echo Running tests
cargo test --target-dir ../target --profile release
echo Running main build
cargo build --target-dir ../target --profile release
echo Copying artifacts
cp ../target/release/blastmud_game ../output/
cp ../target/release/blastmud_listener ../output/

View File

@ -15,8 +15,9 @@ jobs:
- name: blastmud-repo
caches:
- path: target
- path: .cargo
outputs:
- name: target
- name: output
run:
path: blastmud-repo/.ci/build
resources: