Skip to content

Spike/ffi

Spike/ffi #164

Workflow file for this run

name: Build
on:
push:
branches:
- master
- main
paths:
- "**.rs"
- "**.toml"
- "**.lock"
- ".github/workflows/*.yml"
pull_request:
branches:
- master
- main
paths:
- "**.rs"
- "**.toml"
- "**.lock"
- ".github/workflows/*.yml"
env:
CI_NIGHTLY_TOOLCHAIN: "nightly-x86_64-unknown-linux-gnu"
jobs:
format-build-test:
runs-on: ubuntu-24.04
steps:
- name: Check out
uses: actions/checkout@v2
- name: Install ffi toolchain (1.76.0)
run: rustup install 1.76.0-x86_64-unknown-linux-gnu
- name: Install rust nightly
run: |
rustup install nightly
rustup component add rustc-codegen-cranelift-preview --toolchain $CI_NIGHTLY_TOOLCHAIN
rustup component add rustfmt --toolchain $CI_NIGHTLY_TOOLCHAIN
- name: Format
run: cargo fmt --all -- --check
- name: Build
run: rustup run $CI_NIGHTLY_TOOLCHAIN cargo check --verbose
env:
RUSTFLAGS: "-Zcodegen-backend=cranelift"
# - name: Clippy
# uses: giraffate/clippy-action@v1
# with:
# reporter: 'github-pr-review'
# github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Test
env:
TEST_PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
run: rustup run $CI_NIGHTLY_TOOLCHAIN cargo test --all