mirror of
https://github.com/openharmony/third_party_rust_num_cpus.git
synced 2026-07-01 20:44:00 -04:00
29 lines
543 B
YAML
29 lines
543 B
YAML
name: Cargo Test Linux
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
rust: [stable, beta, nightly]
|
|
target: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run tests
|
|
run: |
|
|
rustup default ${{ matrix.rust }}
|
|
rustup target add ${{ matrix.target }}
|
|
cargo test --verbose --target ${{ matrix.target }}
|