File tree Expand file tree Collapse file tree 3 files changed +6
-41
lines changed Expand file tree Collapse file tree 3 files changed +6
-41
lines changed Original file line number Diff line number Diff line change 16
16
rust : [nightly, beta, stable]
17
17
steps :
18
18
- uses : actions/checkout@v2
19
-
20
- - name : Set current week of the year in environnement
21
- if : startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macOS')
22
- run : echo "::set-env name=CURRENT_WEEK::$(date +%V)"
23
-
24
- - name : Set current week of the year in environnement
25
- if : startsWith(matrix.os, 'windows')
26
- run : echo "::set-env name=CURRENT_WEEK::$(Get-Date -UFormat %V)"
27
19
28
20
- name : Install latest ${{ matrix.rust }}
29
21
uses : actions-rs/toolchain@v1
33
25
override : true
34
26
35
27
- name : Install valgrind
36
- run : sudo apt install -y valgrind
28
+ run : |
29
+ sudo apt-get update
30
+ sudo apt-get install -y valgrind
37
31
38
32
- name : Run cargo check
39
33
uses : actions-rs/cargo@v1
Original file line number Diff line number Diff line change @@ -11,27 +11,13 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v2
14
-
15
- - name : Set current week of the year in environnement
16
- run : echo "::set-env name=CURRENT_WEEK::$(date +%V)"
17
-
18
- - name : Cache .rustup
19
- uses : actions/cache@v1
20
- with :
21
- path : ~/.rustup
22
- key : rustup-${{ env.CURRENT_WEEK }}-clippy
23
-
24
- - name : Cache cargo binaries
25
- uses : actions/cache@v1
26
- with :
27
- path : ~/.cargo/bin
28
- key : cargo-binaries-${{ env.CURRENT_WEEK }}-clippy
29
-
14
+
30
15
- uses : actions-rs/toolchain@v1
31
16
with :
32
17
toolchain : stable
33
18
profile : minimal
34
19
components : clippy
20
+
35
21
- uses : actions-rs/clippy-check@v1
36
22
with :
37
23
token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v2
14
-
15
- - name : Set current week of the year in environnement
16
- run : echo "::set-env name=CURRENT_WEEK::$(date +%V)"
17
-
18
- - name : Cache .rustup
19
- uses : actions/cache@v1
20
- with :
21
- path : ~/.rustup
22
- key : rustup-${{ env.CURRENT_WEEK }}-security_audit
23
-
24
- - name : Cache cargo binaries
25
- uses : actions/cache@v1
26
- with :
27
- path : ~/.cargo/bin
28
- key : cargo-binaries-${{ env.CURRENT_WEEK }}-security_audit
29
-
14
+
30
15
- uses : actions-rs/audit-check@v1
31
16
with :
32
17
token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments