File tree 13 files changed +61
-49
lines changed
13 files changed +61
-49
lines changed Original file line number Diff line number Diff line change 37
37
mkdir -p ~/.cargo/{registry,git}
38
38
- name : Set environment variables appropriately for the build
39
39
run : |
40
- echo "::add-path:: $HOME/.cargo/bin"
40
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
41
41
- name : Cache cargo registry and git trees
42
42
uses : actions/cache@v2
43
43
with :
Original file line number Diff line number Diff line change 15
15
run : |
16
16
mkdir mdbook
17
17
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.1/mdbook-v0.4.1-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
18
- echo ::add-path:: `pwd`/mdbook
18
+ echo " `pwd`/mdbook" >> $GITHUB_PATH
19
19
- name : Build book
20
20
run : cd doc && mdbook build
21
21
- name : Deploy to GitHub
Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ jobs:
49
49
mkdir -p ~/.cargo/{registry,git}
50
50
- name : Set environment variables appropriately for the build
51
51
run : |
52
- echo "::add-path:: $HOME/.cargo/bin"
53
- echo "::set-env name= TARGET:: ${{matrix.target}}"
52
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
53
+ echo "TARGET= ${{ matrix.target }}" >> $GITHUB_ENV
54
54
- name : Skip tests
55
55
run : |
56
- echo "::set-env name= SKIP_TESTS:: yes"
56
+ echo "SKIP_TESTS= yes" >> $GITHUB_ENV
57
57
if : matrix.run_tests == ''
58
58
- name : Cache cargo registry and git trees
59
59
uses : actions/cache@v2
91
91
*-linux-android*) DOCKER=android ;; # Android uses a local docker image
92
92
*) DOCKER="$TARGET" ;;
93
93
esac
94
- echo "::set-env name= DOCKER:: $DOCKER"
94
+ echo "DOCKER= $DOCKER" >> $GITHUB_ENV
95
95
- name : Fetch the docker
96
96
run : bash ci/fetch-rust-docker.bash "${TARGET}"
97
97
- name : Maybe build a docker from there
Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ jobs:
42
42
mkdir -p ~/.cargo/{registry,git}
43
43
- name : Set environment variables appropriately for the build
44
44
run : |
45
- echo "::add-path:: $HOME/.cargo/bin"
46
- echo "::set-env name= TARGET:: ${{matrix.target}}"
45
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
46
+ echo "TARGET= ${{ matrix.target }}" >> $GITHUB_ENV
47
47
- name : Skip tests
48
48
run : |
49
- echo "::set-env name= SKIP_TESTS:: yes"
49
+ echo "SKIP_TESTS= yes" >> $GITHUB_ENV
50
50
if : matrix.run_tests == ''
51
51
- name : Cache cargo registry and git trees
52
52
uses : actions/cache@v2
84
84
*-linux-android*) DOCKER=android ;; # Android uses a local docker image
85
85
*) DOCKER="$TARGET" ;;
86
86
esac
87
- echo "::set-env name= DOCKER:: $DOCKER"
87
+ echo "DOCKER= $DOCKER" >> $GITHUB_ENV
88
88
- name : Fetch the docker
89
89
run : bash ci/fetch-rust-docker.bash "${TARGET}"
90
90
- name : Maybe build a docker from there
Original file line number Diff line number Diff line change @@ -71,11 +71,11 @@ jobs:
71
71
mkdir -p ~/.cargo/{registry,git}
72
72
- name : Set environment variables appropriately for the build
73
73
run : |
74
- echo "::add-path:: $HOME/.cargo/bin"
75
- echo "::set-env name= TARGET:: ${{matrix.target}}"
74
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
75
+ echo "TARGET= ${{ matrix.target }}" >> $GITHUB_ENV
76
76
- name : Skip tests
77
77
run : |
78
- echo "::set-env name= SKIP_TESTS:: yes"
78
+ echo "SKIP_TESTS= yes" >> $GITHUB_ENV
79
79
if : matrix.run_tests == ''
80
80
- name : Cache cargo registry and git trees
81
81
uses : actions/cache@v2
@@ -113,7 +113,7 @@ jobs:
113
113
*-linux-android*) DOCKER=android ;; # Android uses a local docker image
114
114
*) DOCKER="$TARGET" ;;
115
115
esac
116
- echo "::set-env name= DOCKER:: $DOCKER"
116
+ echo "DOCKER= $DOCKER" >> $GITHUB_ENV
117
117
- name : Fetch the docker
118
118
run : bash ci/fetch-rust-docker.bash "${TARGET}"
119
119
- name : Maybe build a docker from there
Original file line number Diff line number Diff line change 38
38
mkdir -p ~/.cargo/{registry,git}
39
39
- name : Set environment variables appropriately for the build
40
40
run : |
41
- echo "::add-path:: $HOME/.cargo/bin"
42
- echo "::set-env name= TARGET:: ${{matrix.target}}"
43
- echo "::set-env name= SKIP_TESTS::"
41
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
42
+ echo "TARGET= ${{ matrix.target }}" >> $GITHUB_ENV
43
+ echo "SKIP_TESTS=" >> $GITHUB_ENV
44
44
- name : Cache cargo registry and git trees
45
45
uses : actions/cache@v2
46
46
with :
57
57
uses : actions/cache@v2
58
58
with :
59
59
path : target
60
- key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
61
- restore-keys : ${{ github.base_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
60
+ key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}-3
61
+ restore-keys : ${{ github.base_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}-3
62
62
- name : Install Rustup using ./rustup-init.sh
63
63
run : |
64
64
sh ./rustup-init.sh --default-toolchain=none --profile=minimal -y
92
92
run : |
93
93
cargo install cargo-cache --no-default-features --features ci-autoclean
94
94
cargo-cache
95
+ - name : Flush cache
96
+ # This is a workaround for a bug with GitHub Actions Cache that causes
97
+ # corrupt cache entries (particularly in the target directory). See
98
+ # https://github.com/actions/cache/issues/403 and
99
+ # https://github.com/rust-lang/cargo/issues/8603.
100
+ run : sudo /usr/sbin/purge
Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ jobs:
54
54
Invoke-WebRequest ${{ matrix.mingw }} -OutFile mingw.7z
55
55
7z x -y mingw.7z -oC:\msys64 | Out-Null
56
56
del mingw.7z
57
- echo ::add-path:: C:\msys64\usr\bin
58
- echo ::add-path:: C:\msys64\${{ matrix.mingwdir }}\bin
57
+ echo " C:\msys64\usr\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
58
+ echo " C:\msys64\${{ matrix.mingwdir }}\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
59
59
shell : powershell
60
60
if : matrix.mingw != ''
61
61
- name : Set environment variables appropriately for the build
62
62
run : |
63
- echo "::add-path:: %USERPROFILE%\.cargo\bin"
64
- echo "::set-env name= TARGET:: ${{matrix.target}}"
65
- echo "::set-env name=SKIP_TESTS::"
63
+ echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
64
+ echo "TARGET= ${{ matrix.target }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
65
+ echo "SKIP_TESTS=" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
66
66
- name : Cache cargo registry and git trees
67
67
uses : actions/cache@v2
68
68
with :
Original file line number Diff line number Diff line change @@ -51,15 +51,15 @@ jobs:
51
51
Invoke-WebRequest ${{ matrix.mingw }} -OutFile mingw.7z
52
52
7z x -y mingw.7z -oC:\msys64 | Out-Null
53
53
del mingw.7z
54
- echo ::add-path:: C:\msys64\usr\bin
55
- echo ::add-path:: C:\msys64\${{ matrix.mingwdir }}\bin
54
+ echo " C:\msys64\usr\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
55
+ echo " C:\msys64\${{ matrix.mingwdir }}\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
56
56
shell : powershell
57
57
if : matrix.mingw != ''
58
58
- name : Set environment variables appropriately for the build
59
59
run : |
60
- echo "::add-path:: %USERPROFILE%\.cargo\bin"
61
- echo "::set-env name= TARGET:: ${{matrix.target}}"
62
- echo "::set-env name=SKIP_TESTS::"
60
+ echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
61
+ echo "TARGET= ${{ matrix.target }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
62
+ echo "SKIP_TESTS=" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
63
63
- name : Cache cargo registry and git trees
64
64
uses : actions/cache@v2
65
65
with :
Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ jobs:
54
54
Invoke-WebRequest ${{ matrix.mingw }} -OutFile mingw.7z
55
55
7z x -y mingw.7z -oC:\msys64 | Out-Null
56
56
del mingw.7z
57
- echo ::add-path:: C:\msys64\usr\bin
58
- echo ::add-path:: C:\msys64\${{ matrix.mingwdir }}\bin
57
+ echo " C:\msys64\usr\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
58
+ echo " C:\msys64\${{ matrix.mingwdir }}\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
59
59
shell : powershell
60
60
if : matrix.mingw != ''
61
61
- name : Set environment variables appropriately for the build
62
62
run : |
63
- echo "::add-path:: %USERPROFILE%\.cargo\bin"
64
- echo "::set-env name= TARGET:: ${{matrix.target}}"
65
- echo "::set-env name=SKIP_TESTS::"
63
+ echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
64
+ echo "TARGET= ${{ matrix.target }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
65
+ echo "SKIP_TESTS=" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
66
66
- name : Cache cargo registry and git trees
67
67
uses : actions/cache@v2
68
68
with :
Original file line number Diff line number Diff line change 37
37
mkdir -p ~/.cargo/{registry,git}
38
38
- name : Set environment variables appropriately for the build
39
39
run : |
40
- echo "::add-path:: $HOME/.cargo/bin"
40
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
41
41
- name : Cache cargo registry and git trees
42
42
uses : actions/cache@v2
43
43
with :
Original file line number Diff line number Diff line change @@ -79,11 +79,11 @@ jobs:
79
79
mkdir -p ~/.cargo/{registry,git}
80
80
- name : Set environment variables appropriately for the build
81
81
run : |
82
- echo "::add-path:: $HOME/.cargo/bin"
83
- echo "::set-env name= TARGET:: ${{matrix.target}}"
82
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
83
+ echo "TARGET= ${{ matrix.target }}" >> $GITHUB_ENV
84
84
- name : Skip tests
85
85
run : |
86
- echo "::set-env name= SKIP_TESTS:: yes"
86
+ echo "SKIP_TESTS= yes" >> $GITHUB_ENV
87
87
if : matrix.run_tests == ''
88
88
- name : Cache cargo registry and git trees
89
89
uses : actions/cache@v2
@@ -121,7 +121,7 @@ jobs:
121
121
*-linux-android*) DOCKER=android ;; # Android uses a local docker image
122
122
*) DOCKER="$TARGET" ;;
123
123
esac
124
- echo "::set-env name= DOCKER:: $DOCKER"
124
+ echo "DOCKER= $DOCKER" >> $GITHUB_ENV
125
125
- name : Fetch the docker
126
126
run : bash ci/fetch-rust-docker.bash "${TARGET}"
127
127
- name : Maybe build a docker from there
Original file line number Diff line number Diff line change 38
38
mkdir -p ~/.cargo/{registry,git}
39
39
- name : Set environment variables appropriately for the build
40
40
run : |
41
- echo "::add-path:: $HOME/.cargo/bin"
42
- echo "::set-env name= TARGET:: ${{matrix.target}}"
43
- echo "::set-env name= SKIP_TESTS::"
41
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
42
+ echo "TARGET= ${{ matrix.target }}" >> $GITHUB_ENV
43
+ echo "SKIP_TESTS=" >> $GITHUB_ENV
44
44
- name : Cache cargo registry and git trees
45
45
uses : actions/cache@v2
46
46
with :
57
57
uses : actions/cache@v2
58
58
with :
59
59
path : target
60
- key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
61
- restore-keys : ${{ github.base_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
60
+ key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}-3
61
+ restore-keys : ${{ github.base_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}-3
62
62
- name : Install Rustup using ./rustup-init.sh
63
63
run : |
64
64
sh ./rustup-init.sh --default-toolchain=none --profile=minimal -y
92
92
run : |
93
93
cargo install cargo-cache --no-default-features --features ci-autoclean
94
94
cargo-cache
95
+ - name : Flush cache
96
+ # This is a workaround for a bug with GitHub Actions Cache that causes
97
+ # corrupt cache entries (particularly in the target directory). See
98
+ # https://github.com/actions/cache/issues/403 and
99
+ # https://github.com/rust-lang/cargo/issues/8603.
100
+ run : sudo /usr/sbin/purge
Original file line number Diff line number Diff line change @@ -62,15 +62,15 @@ jobs:
62
62
Invoke-WebRequest ${{ matrix.mingw }} -OutFile mingw.7z
63
63
7z x -y mingw.7z -oC:\msys64 | Out-Null
64
64
del mingw.7z
65
- echo ::add-path:: C:\msys64\usr\bin
66
- echo ::add-path:: C:\msys64\${{ matrix.mingwdir }}\bin
65
+ echo " C:\msys64\usr\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
66
+ echo " C:\msys64\${{ matrix.mingwdir }}\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
67
67
shell : powershell
68
68
if : matrix.mingw != ''
69
69
- name : Set environment variables appropriately for the build
70
70
run : |
71
- echo "::add-path:: %USERPROFILE%\.cargo\bin"
72
- echo "::set-env name= TARGET:: ${{matrix.target}}"
73
- echo "::set-env name=SKIP_TESTS::"
71
+ echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
72
+ echo "TARGET= ${{ matrix.target }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
73
+ echo "SKIP_TESTS=" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
74
74
- name : Cache cargo registry and git trees
75
75
uses : actions/cache@v2
76
76
with :
You can’t perform that action at this time.
0 commit comments