diff options
author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-02-05 10:28:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 09:28:55 +0000 |
commit | 6a2576fc5bb2b60df3ad0563d594d6742e27532b (patch) | |
tree | 9e8b957f3dc6450df06ff1998fe5b3a2cb5ba863 /.github | |
parent | 3ff2e2552f5b4db9c8b8e127ff833873902258c0 (diff) |
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
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/rust.yml | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d60db42ab..774e4a4d8 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 |