Skip to content

Commit

Permalink
test cross platform build
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-babichenko committed Jun 13, 2024
1 parent 777050e commit c2d2ce5
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,36 @@ on:
name: Tests

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
- os: macos-latest
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin
steps:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --frozen --release

tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -21,6 +45,9 @@ jobs:
- name: Install Prettier
run: npm install -g prettier

- name: Checkout
uses: actions/checkout@v2

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit c2d2ce5

Please sign in to comment.