-
João Magalhães authoredJoão Magalhães authored
main.yml 8.89 KiB
name: Main Workflow
on:
push:
schedule:
- cron: "0 0 * * 0"
jobs:
build:
name: Build
timeout-minutes: 10
strategy:
matrix:
rust-version: [
"1.74.0",
"1.75.0",
"1.76.0",
"1.77.0",
"1.78.0",
"1.79.0",
"1.80.0",
"latest"
]
runs-on: ubuntu-latest
container: rust:${{ matrix.rust-version }}
steps:
- name: Checkout code from repository
uses: actions/checkout@v4
- name: Install Rust components
run: |
rustup component add rustfmt
rustup component add clippy
- name: Print Rust information
run: rustc --version
- name: Verify Rust code format
run: cargo fmt --all -- --check
- name: Verify Rust code linting
run: cargo clippy -- -D warnings -A unknown-lints
- name: Run unit tests
run: cargo test
- name: Run benchmarks
run: cargo bench
- name: Build development version
run: cargo build
- name: Build release version
run: cargo build --release
build-simple:
name: Build Simple
timeout-minutes: 10
strategy:
matrix:
rust-version: [
"1.74.0",
"1.75.0",
"1.76.0",
"1.77.0",
"1.78.0",
"1.79.0",
"1.80.0",
"latest"
]
runs-on: ubuntu-latest
container: rust:${{ matrix.rust-version }}
steps:
- name: Checkout code from repository
uses: actions/checkout@v4
- name: Install Rust components
run: |
rustup component add rustfmt
rustup component add clippy
- name: Print Rust information
run: rustc --version