forked from blasthavers/blastmud
Cache .cargo, and copy output to separate path.
This commit is contained in:
parent
bc0843adfa
commit
f74bc7fe6b
@ -1,7 +1,12 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
|
echo Using HOME: $HOME
|
||||||
cd blastmud-repo
|
cd blastmud-repo
|
||||||
echo Running tests
|
echo Running tests
|
||||||
cargo test --target-dir ../target --profile release
|
cargo test --target-dir ../target --profile release
|
||||||
|
echo Running main build
|
||||||
cargo build --target-dir ../target --profile release
|
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
|
- name: blastmud-repo
|
||||||
caches:
|
caches:
|
||||||
- path: target
|
- path: target
|
||||||
|
- path: .cargo
|
||||||
outputs:
|
outputs:
|
||||||
- name: target
|
- name: output
|
||||||
run:
|
run:
|
||||||
path: blastmud-repo/.ci/build
|
path: blastmud-repo/.ci/build
|
||||||
resources:
|
resources:
|
||||||
|
Loading…
Reference in New Issue
Block a user