Skip to content

Commit

Permalink
ci: add task for cargo-c.
Browse files Browse the repository at this point in the history
This will prevent bitrot with the cargo-c support.
  • Loading branch information
cpu committed Aug 2, 2023
1 parent cd2544a commit 7588ebf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yaml
Expand Up @@ -218,6 +218,25 @@ jobs:
- name: Clang tidy
run: clang-tidy tests/*.c -- -I src/

cargo-c:
name: cargo-c
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install cargo-c
env:
LINK: https://github.com/lu-zero/cargo-c/releases/latest/download
CARGO_C_FILE: cargo-c-x86_64-unknown-linux-musl.tar.gz
run: |
curl -L $LINK/$CARGO_C_FILE | tar xz -C ~/.cargo/bin
- name: Build and test with cargo-c
run: cargo cbuild

miri:
name: Miri
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7588ebf

Please sign in to comment.