File tree Expand file tree Collapse file tree 13 files changed +27
-24
lines changed Expand file tree Collapse file tree 13 files changed +27
-24
lines changed Original file line number Diff line number Diff line change 39
39
run : |
40
40
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
41
41
- name : Cache cargo registry and git trees
42
- uses : actions/cache@v2
42
+ uses : actions/cache@v3
43
43
with :
44
44
path : |
45
45
~/.cargo/registry
51
51
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
52
52
shell : bash
53
53
- name : Cache cargo build
54
- uses : actions/cache@v2
54
+ uses : actions/cache@v3
55
55
with :
56
56
path : target
57
57
key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ runner.os }}-cargo-clippy-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
82
82
sh ./ci/raw_init.sh
83
83
- name : Run shell checks
84
84
run : |
85
- shellcheck -s dash -- rustup-init.sh
86
- git ls-files -- '*.sh' | xargs shellcheck -s dash -e SC1090
87
- git ls-files -- '*.bash' | xargs shellcheck -s bash -e SC1090
85
+ shellcheck -x - s dash -- rustup-init.sh
86
+ git ls-files -- '*.sh' | xargs shellcheck -x -s dash
87
+ git ls-files -- '*.bash' | xargs shellcheck -x -s bash
88
88
- name : Run formatting checks
89
89
run : |
90
90
cargo fmt --all --check
Original file line number Diff line number Diff line change 57
57
echo "SKIP_TESTS=yes" >> $GITHUB_ENV
58
58
if : matrix.run_tests == ''
59
59
- name : Cache cargo registry and git trees
60
- uses : actions/cache@v2
60
+ uses : actions/cache@v3
61
61
with :
62
62
path : |
63
63
~/.cargo/registry
69
69
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
70
70
shell : bash
71
71
- name : Cache cargo build
72
- uses : actions/cache@v2
72
+ uses : actions/cache@v3
73
73
with :
74
74
path : target
75
75
key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
Original file line number Diff line number Diff line change 50
50
echo "SKIP_TESTS=yes" >> $GITHUB_ENV
51
51
if : matrix.run_tests == ''
52
52
- name : Cache cargo registry and git trees
53
- uses : actions/cache@v2
53
+ uses : actions/cache@v3
54
54
with :
55
55
path : |
56
56
~/.cargo/registry
62
62
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
63
63
shell : bash
64
64
- name : Cache cargo build
65
- uses : actions/cache@v2
65
+ uses : actions/cache@v3
66
66
with :
67
67
path : target
68
68
key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
Original file line number Diff line number Diff line change 80
80
echo "SKIP_TESTS=yes" >> $GITHUB_ENV
81
81
if : matrix.run_tests == ''
82
82
- name : Cache cargo registry and git trees
83
- uses : actions/cache@v2
83
+ uses : actions/cache@v3
84
84
with :
85
85
path : |
86
86
~/.cargo/registry
92
92
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
93
93
shell : bash
94
94
- name : Cache cargo build
95
- uses : actions/cache@v2
95
+ uses : actions/cache@v3
96
96
with :
97
97
path : target
98
98
key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
Original file line number Diff line number Diff line change 44
44
echo "SKIP_TESTS=" >> $GITHUB_ENV
45
45
echo "LZMA_API_STATIC=1" >> $GITHUB_ENV
46
46
- name : Cache cargo registry and git trees
47
- uses : actions/cache@v2
47
+ uses : actions/cache@v3
48
48
with :
49
49
path : |
50
50
~/.cargo/registry
56
56
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
57
57
shell : bash
58
58
- name : Cache cargo build
59
- uses : actions/cache@v2
59
+ uses : actions/cache@v3
60
60
with :
61
61
path : target
62
62
key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}-3
Original file line number Diff line number Diff line change 67
67
echo "TARGET=${{ matrix.target }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
68
68
echo "SKIP_TESTS=${{ matrix.skip_tests }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
69
69
- name : Cache cargo registry and git trees
70
- uses : actions/cache@v2
70
+ uses : actions/cache@v3
71
71
with :
72
72
path : |
73
73
~/.cargo/registry
79
79
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
80
80
shell : bash
81
81
- name : Cache cargo build
82
- uses : actions/cache@v2
82
+ uses : actions/cache@v3
83
83
with :
84
84
path : target
85
85
key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
Original file line number Diff line number Diff line change 61
61
echo "TARGET=${{ matrix.target }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
62
62
echo "SKIP_TESTS=${{ matrix.skip_tests }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
63
63
- name : Cache cargo registry and git trees
64
- uses : actions/cache@v2
64
+ uses : actions/cache@v3
65
65
with :
66
66
path : |
67
67
~/.cargo/registry
73
73
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
74
74
shell : bash
75
75
- name : Cache cargo build
76
- uses : actions/cache@v2
76
+ uses : actions/cache@v3
77
77
with :
78
78
path : target
79
79
key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
Original file line number Diff line number Diff line change 64
64
echo "TARGET=${{ matrix.target }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
65
65
echo "SKIP_TESTS=${{ matrix.skip_tests }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
66
66
- name : Cache cargo registry and git trees
67
- uses : actions/cache@v2
67
+ uses : actions/cache@v3
68
68
with :
69
69
path : |
70
70
~/.cargo/registry
76
76
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
77
77
shell : bash
78
78
- name : Cache cargo build
79
- uses : actions/cache@v2
79
+ uses : actions/cache@v3
80
80
with :
81
81
path : target
82
82
key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
Original file line number Diff line number Diff line change 82
82
sh ./ci/raw_init.sh
83
83
- name : Run shell checks
84
84
run : |
85
- shellcheck -s dash -- rustup-init.sh
86
- git ls-files -- '*.sh' | xargs shellcheck -s dash -e SC1090
87
- git ls-files -- '*.bash' | xargs shellcheck -s bash -e SC1090
85
+ shellcheck -x - s dash -- rustup-init.sh
86
+ git ls-files -- '*.sh' | xargs shellcheck -x -s dash
87
+ git ls-files -- '*.bash' | xargs shellcheck -x -s bash
88
88
- name : Run formatting checks
89
89
run : |
90
90
cargo fmt --all --check
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/bash
2
2
3
3
set -ex
4
4
@@ -26,6 +26,7 @@ echo "Install Rustup using ./rustup-init.sh"
26
26
27
27
sh rustup-init.sh --default-toolchain=stable --profile=minimal -y
28
28
# It's the equivalent of `source`
29
+ # shellcheck source=src/cli/self_update/env.sh
29
30
source " $HOME " /.cargo/env
30
31
31
32
echo " ========="
You can’t perform that action at this time.
0 commit comments