Skip to content

Commit

Permalink
test: test on macos and windows in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
charislam committed Dec 11, 2024
1 parent 9beb2a3 commit 81b35e0
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
rust_tests:
test-ubuntu:
runs-on: ubuntu-latest

steps:
Expand All @@ -34,3 +34,47 @@ jobs:
run: cargo test
- name: release build
run: cargo build --release

test-macos:
runs-on: macos-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: cache cargo
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: lint
run: cargo clippy
- name: rust tests
run: cargo test
- name: release build
run: cargo build --release

test-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: cache cargo
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: lint
run: cargo clippy
- name: rust tests
run: cargo test
- name: release build
run: cargo build --release

0 comments on commit 81b35e0

Please sign in to comment.