Skip to content

Commit 326c39b

Browse files
author
Zoe Spellman
committed
ci: migrate away from actions-rs
Fixes #79
1 parent dbe09f8 commit 326c39b

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13-
- uses: actions-rs/toolchain@v1
13+
- uses: dtolnay/toolchain@stable
1414
with:
1515
toolchain: stable
1616

@@ -20,10 +20,9 @@ jobs:
2020
sudo apt-get install -y libssl-dev pkg-config protobuf-compiler
2121
2222
- name: Check code formating
23-
uses: actions-rs/cargo@v1
23+
uses: mbrobbel/rustfmt-check@master
2424
with:
25-
command: fmt
26-
args: --check
25+
token: ${{ secrets.GITHUB_TOKEN }}
2726

2827
- name: Clippy linting
2928
uses: giraffate/clippy-action@v1

.github/workflows/check-build-publish.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ jobs:
4343
sudo apt-get install -y libssl-dev pkg-config protobuf-compiler
4444
4545
- name: Setup rust toolchain
46-
uses: actions-rs/toolchain@v1
47-
with: # seems to ignore rust-toolchain but it should be supported
46+
uses: dtolnay/toolchain@stable
47+
with:
4848
toolchain: stable
4949

50+
# No replacement for actions-rs/rust-cargo
5051
- name: Build release binary
51-
uses: actions-rs/cargo@v1
52-
with:
53-
command: build
54-
args: --release
52+
run: cargo build --release
5553

5654
- name: Log in to gchr.io
5755
uses: docker/login-action@v3

0 commit comments

Comments
 (0)