Skip to content

Commit

Permalink
ci: migrate away from actions-rs
Browse files Browse the repository at this point in the history
Fixes #79
  • Loading branch information
Zoe Spellman committed Feb 27, 2024
1 parent 5045947 commit 4e846aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

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

- name: Clippy linting
uses: giraffate/clippy-action@v1
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/check-build-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ jobs:
sudo apt-get install -y libssl-dev pkg-config protobuf-compiler
- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
with: # seems to ignore rust-toolchain but it should be supported
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

# No replacement for actions-rs/rust-cargo
- name: Build release binary
uses: actions-rs/cargo@v1
with:
command: build
args: --release
run: cargo build --release

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

0 comments on commit 4e846aa

Please sign in to comment.