Skip to content

Commit

Permalink
Build tests and binaries in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Jul 9, 2024
1 parent e7b83c9 commit 73a7e82
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build-all-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

jobs:
build-all:
build-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -13,5 +13,18 @@ jobs:
run: rustup toolchain install nightly
- name: Set Rust nightly as default
run: rustup default nightly
- name: Build All Targets
run: cargo build --release --all-features --all-targets
# Building tests in release mode checks warnings and compiler errors that depend on optimisations
- name: Build Tests
run: cargo build --release --all-features --tests
build-bins:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust nightly
run: rustup toolchain install nightly
- name: Set Rust nightly as default
run: rustup default nightly
# Docker CI already builds binaries in release mode, so we can run faster by building in dev mode here
- name: Build Binaries
run: cargo build --all-features --lib --bins --benches --examples

0 comments on commit 73a7e82

Please sign in to comment.