54
54
if : startsWith(matrix.config.os, 'ubuntu') && matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/') && github.repository == 'denoland/deno'
55
55
run : |
56
56
mkdir -p target/release
57
- tar --exclude=.cargo --exclude=".git*" --exclude=target --exclude=deno_typescript/typescript/tests --exclude=third_party/cpplint --exclude=third_party/node_modules --exclude=third_party/python_packages --exclude=third_party/prebuilt -czvf target/release/deno_src.tar.gz -C .. deno
57
+ tar --exclude=.cargo_home --exclude=".git*" --exclude=target --exclude=deno_typescript/typescript/tests --exclude=third_party/cpplint --exclude=third_party/node_modules --exclude=third_party/python_packages --exclude=third_party/prebuilt -czvf target/release/deno_src.tar.gz -C .. deno
58
58
59
59
- name : Install rust
60
60
uses : hecrj/setup-rust-action@v1
@@ -90,11 +90,11 @@ jobs:
90
90
91
91
- name : Configure cargo data directory
92
92
# After this point, all cargo registry and crate data is stored in
93
- # $GITHUB_WORKSPACE/.cargo . This allows us to cache only the files that
94
- # are needed during the build process. Additionally, this works around
95
- # a bug in the 'cache' action that causes directories outside of the
96
- # workspace dir to be saved/restored incorrectly.
97
- run : echo "::set-env name=CARGO_HOME::$(pwd)/.cargo "
93
+ # $GITHUB_WORKSPACE/.cargo_home . This allows us to cache only the files
94
+ # that are needed during the build process. Additionally, this works
95
+ # around a bug in the 'cache' action that causes directories outside of
96
+ # the workspace dir to be saved/restored incorrectly.
97
+ run : echo "::set-env name=CARGO_HOME::$(pwd)/.cargo_home "
98
98
99
99
- name : Cache
100
100
uses : actions/cache@master
@@ -104,7 +104,7 @@ jobs:
104
104
# so we cache only those subdirectories of target/{debug|release} that
105
105
# contain the build output for crates that come from the registry.
106
106
path : |-
107
- .cargo
107
+ .cargo_home
108
108
target/*/.*
109
109
target/*/build
110
110
target/*/deps
0 commit comments