Cache .cargo, and copy output to separate path.
This commit is contained in:
parent
bc0843adfa
commit
f74bc7fe6b
@ -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/
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user