Skip to content

Commit

Permalink
Update rust.yml to test multiple platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
karip committed Feb 27, 2024
1 parent e725dc0 commit 566d38d
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: platform-info test
name: cross-platform tests

on:
push:
Expand All @@ -10,13 +10,19 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:

test:
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- powerpc-unknown-linux-gnu
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose -- --nocapture
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Install cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@v1.20
with:
target: ${{ matrix.target }}
- run: cargo test --verbose -- --nocapture

0 comments on commit 566d38d

Please sign in to comment.