Skip to content

Commit

Permalink
chore: add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pbogut committed Oct 14, 2023
1 parent 7aed974 commit 7ed721a
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
fail-fast: false
matrix:
build:
- {
NAME: linux-x64,
OS: ubuntu-22.04,
TARGET: x86_64-unknown-linux-gnu,
}
- {
NAME: windows-x64,
OS: windows-2022,
TARGET: x86_64-pc-windows-msvc,
}
- {
NAME: windows-arm64,
OS: windows-2022,
TARGET: aarch64-pc-windows-msvc,
}
- {
NAME: darwin-x64,
OS: macos-12,
TARGET: x86_64-apple-darwin,
}
- {
NAME: darwin-arm64,
OS: macos-12,
TARGET: aarch64-apple-darwin,
}

runs-on: ubuntu-latest

steps:
- name: Checkout code
- uses: actions/checkout@v3

- name: Setup Rust env
uses: "./.github/actions/setup-rust-env"

- name: Build
run: cargo build --verbose --target ${{ matrix.build.TARGET }}

- name: Run tests
run: cargo test --verbose --target ${{ matrix.build.TARGET }}

0 comments on commit 7ed721a

Please sign in to comment.