Skip to content

Commit 11ec3f4

Browse files
authored
Merge pull request #10 from taiki-e/ci
Fix CI
2 parents 6bddb92 + 58ab126 commit 11ec3f4

File tree

3 files changed

+6
-41
lines changed

3 files changed

+6
-41
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ jobs:
1616
rust: [nightly, beta, stable]
1717
steps:
1818
- 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)"
2719

2820
- name: Install latest ${{ matrix.rust }}
2921
uses: actions-rs/toolchain@v1
@@ -33,7 +25,9 @@ jobs:
3325
override: true
3426

3527
- name: Install valgrind
36-
run: sudo apt install -y valgrind
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install -y valgrind
3731
3832
- name: Run cargo check
3933
uses: actions-rs/cargo@v1

.github/workflows/lint.yaml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- 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+
3015
- uses: actions-rs/toolchain@v1
3116
with:
3217
toolchain: stable
3318
profile: minimal
3419
components: clippy
20+
3521
- uses: actions-rs/clippy-check@v1
3622
with:
3723
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/security.yaml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- 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+
3015
- uses: actions-rs/audit-check@v1
3116
with:
3217
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)