ci: create rust.yml

This commit is contained in:
Rotem Horesh 2024-12-30 17:08:43 +02:00 committed by GitHub
parent 9876f74a04
commit f88a3a1112
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

25
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Rust
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Rust project - nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update nightly && rustup default nightly
- name: Build
run: cargo build --all --verbose
- name: Run tests
run: cargo test --all --verbose