Skip to content

Commit

Permalink
refactor(CI): consolidate OS jobs into a single build-and-test job
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <[email protected]>
  • Loading branch information
tareknaser committed Dec 19, 2024
1 parent 66f513c commit b765342
Showing 1 changed file with 7 additions and 58 deletions.
65 changes: 7 additions & 58 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Weekly testing
name: Weekly Testing

on:
push:
Expand All @@ -9,63 +9,12 @@ on:
- cron: "0 0 * * 0"

jobs:
linux:
name: Linux
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Set up Cargo Cache
uses: Swatinem/rust-cache@v2
with:
save-if: true

- name: Run tests
run: cargo test --workspace --verbose --release

windows:
name: Windows
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Set up Cargo Cache
uses: Swatinem/rust-cache@v2
with:
save-if: true

- name: Run tests
run: cargo test --workspace --verbose --release

mac-intel:
name: MacOS Intel
runs-on: macos-14

steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Set up Cargo Cache
uses: Swatinem/rust-cache@v2
with:
save-if: true

- name: Run tests
run: cargo test --workspace --verbose --release

mac-arm:
name: MacOS ARM
runs-on: macos-13-xlarge
build-and-test:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-14, macos-13-xlarge]

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit b765342

Please sign in to comment.