ci(rust): build with nightly toolchain #319
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [master] | |
paths: | |
- "rust/**/Cargo.toml" | |
- "rust/**/*.rs" | |
- ".github/workflows/rust.yaml" | |
pull_request: | |
paths: | |
- "rust/**/Cargo.toml" | |
- "rust/**/*.rs" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Tests | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/archlinux/archlinux:latest | |
steps: | |
- name: Install Rust | |
run: | | |
pacman -Sy rustup gcc glibc openssl pkgconf --noconfirm | |
rustup default nightly | |
- name: Clone Project | |
uses: actions/checkout@v4 | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: "rust -> target" | |
- name: Build and Test | |
run: | | |
cd rust/ | |
cargo +nightly test |