2023-05-06 18:15:01 -05:00
|
|
|
name: CI
|
|
|
|
|
2023-05-06 18:33:30 -05:00
|
|
|
on: [push, pull_request]
|
2023-05-06 18:15:01 -05:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
2023-05-06 18:29:39 -05:00
|
|
|
test:
|
2023-05-06 18:33:30 -05:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
target:
|
|
|
|
- x86_64-unknown-linux-gnu
|
2023-05-06 19:03:15 -05:00
|
|
|
- i686-unknown-linux-gnu
|
2023-05-06 18:33:30 -05:00
|
|
|
- aarch64-unknown-linux-gnu
|
|
|
|
- riscv64gc-unknown-linux-gnu
|
2023-07-16 07:40:00 -05:00
|
|
|
- riscv32gc-unknown-linux-gnu
|
2023-05-06 18:15:01 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-05-06 18:29:39 -05:00
|
|
|
- name: Install Rust
|
2023-05-06 18:33:30 -05:00
|
|
|
run: |
|
|
|
|
rustup update nightly
|
|
|
|
rustup default nightly
|
|
|
|
- name: Install cross-compilation tools
|
|
|
|
uses: taiki-e/setup-cross-toolchain-action@v1
|
|
|
|
with:
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
|
2023-10-27 19:06:27 -05:00
|
|
|
- name: Build library
|
2023-07-16 07:40:00 -05:00
|
|
|
run: cargo build --release $BUILD_STD
|
2023-05-06 18:33:30 -05:00
|
|
|
|
2023-10-27 19:06:27 -05:00
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --release $BUILD_STD
|