Skip to content
Snippets Groups Projects
Verified Commit 7898ab9f authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: new build strategy

parent 5ad29997
No related branches found
No related tags found
No related merge requests found
Pipeline #4391 passed
......@@ -7,6 +7,38 @@ jobs:
build:
name: Build
timeout-minutes: 10
strategy:
matrix:
rust-version: [
"1.74.0",
"1.75.0",
"1.76.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: 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: [
......@@ -36,8 +68,6 @@ jobs:
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: Build development version
run: cargo build
- name: Build release version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment