Skip to content

Commit 6da1492

Browse files
authored
Merge pull request #8 from miek/actions-update
Update actions to latest versions
2 parents bf026fa + d206c5c commit 6da1492

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

.github/workflows/rust.yml

+16-22
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,15 @@ jobs:
1616

1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020

21-
- name: Install stable components
22-
uses: actions-rs/toolchain@v1
23-
with:
24-
toolchain: stable
25-
override: true
26-
components: clippy
21+
- name: Install toolchain
22+
run: |
23+
rustup toolchain install stable
24+
rustup default stable
2725
2826
- name: Run clippy
29-
uses: actions-rs/clippy-check@v1
30-
with:
31-
token: ${{ secrets.GITHUB_TOKEN }}
32-
args: --verbose --release -- -D warnings
27+
run: cargo clippy -- --deny warnings
3328

3429
build_and_test:
3530
name: Rust project
@@ -40,20 +35,19 @@ jobs:
4035
rust: ['stable']
4136
include:
4237
- os: 'ubuntu-20.04'
43-
rust: '1.41'
38+
rust: '1.63'
4439
runs-on: ${{ matrix.os }}
4540
steps:
46-
- uses: actions/checkout@v2
47-
- uses: actions-rs/toolchain@v1
48-
with:
49-
toolchain: ${{ matrix.rust }}
50-
- uses: actions-rs/cargo@v1
51-
with:
52-
command: build
53-
args: --release --all-features
54-
- uses: actions/upload-artifact@v2
41+
- uses: actions/checkout@v4
42+
- name: Install toolchain
43+
run: |
44+
rustup toolchain install ${{ matrix.rust }}
45+
rustup default ${{ matrix.rust }}
46+
- name: Build
47+
run: cargo build --release
48+
- uses: actions/upload-artifact@v4
5549
with:
56-
name: plotsweep ${{ matrix.os }}
50+
name: plotsweep ${{ matrix.os }} rust-${{ matrix.rust }}
5751
path: |
5852
target/release/plotsweep
5953
target/release/plotsweep.exe

0 commit comments

Comments
 (0)