From 6a2576fc5bb2b60df3ad0563d594d6742e27532b Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 5 Feb 2024 10:28:55 +0100 Subject: chore(ci): run rust build/test/check on 3 platforms (#1675) * chore(ci): run rust build/test/check on 3 platforms * need to properly test windows * do not need to strip here, and windows has a suffix anyway --- .github/workflows/rust.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d60db42a..774e4a4d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,7 +11,10 @@ env: jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-14, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -39,10 +42,13 @@ jobs: run: cargo build -p atuin-server --locked --release - name: Run cargo build main - run: cargo build --all --locked --release && strip target/release/atuin + run: cargo build --all --locked --release unit-test: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-14, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -64,7 +70,10 @@ jobs: run: cargo test --lib --bins check: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-14, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 -- cgit v1.3.1