File tree 2 files changed +8
-17
lines changed
2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 40
40
41
41
- name : Run check w/rust-toolchain.toml
42
42
run : |
43
- mv ./test/rt.toml ./test/ rust-toolchain.toml
44
- docker run -v $PWD/test :/test test-cargo-deny \
43
+ mv ./test/rt.toml ./rust-toolchain.toml
44
+ docker run -v $PWD:/test test-cargo-deny \
45
45
"" \
46
46
"" \
47
47
"" \
Original file line number Diff line number Diff line change 3
3
4
4
PATH=$PATH :/usr/local/cargo/bin
5
5
6
- if [ -n " $1 " ]
7
- then
6
+ if [ -n " $1 " ]; then
8
7
rustup set profile minimal
9
8
rustup default " $1 "
10
9
fi
11
10
12
11
rustup toolchain install
13
12
14
- if [ -n " $2 " ]
15
- then
13
+ if [ -n " $2 " ]; then
16
14
git config --global credential.helper store
17
15
git config --global --replace-all url.https://github.com/.insteadOf ssh://
[email protected] /
18
16
git config --global --add url.https://github.com/.insteadOf
[email protected] :
21
19
chmod 600 " $HOME /.git-credentials"
22
20
fi
23
21
24
- if [ -n " $3 " ]
25
- then
22
+ if [ -n " $3 " ]; then
26
23
mkdir -p " /root/.ssh"
27
24
chmod 0700 " /root/.ssh"
28
25
echo " ${3} " > " /root/.ssh/id_rsa"
29
26
chmod 0600 " /root/.ssh/id_rsa"
30
27
fi
31
28
32
- if [ -n " $4 " ]
33
- then
29
+ if [ -n " $4 " ]; then
34
30
mkdir -p " /root/.ssh"
35
31
chmod 0700 " /root/.ssh"
36
32
echo " ${4} " > " /root/.ssh/known_hosts"
37
33
chmod 0600 " /root/.ssh/known_hosts"
38
34
fi
39
35
40
- if [ -n " $5 " ]
41
- then
36
+ if [ -n " $5 " ]; then
42
37
export CARGO_NET_GIT_FETCH_WITH_CLI=" $5 "
43
38
fi
44
39
45
- shift
46
- shift
47
- shift
48
- shift
49
- shift
40
+ shift 5
50
41
51
42
# Due to how github actions run containers we need to explicitly force colors
52
43
# as TTY detection fails inside them
You can’t perform that action at this time.
0 commit comments