to test matrix.os in github
This commit is contained in:
26
.github/workflows/rust.yml
vendored
26
.github/workflows/rust.yml
vendored
@@ -10,10 +10,12 @@ env:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
strategy:
|
||||
matrix:
|
||||
fail-fast: false
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
@@ -38,22 +40,6 @@ jobs:
|
||||
run: rustup target add x86_64-unknown-linux-musl x86_64-pc-windows-msvc aarch64-apple-darwin x86_64-apple-darwin
|
||||
- name: Linux gnu Build
|
||||
run: cargo build --verbose
|
||||
- name: m1 mac Build
|
||||
run: cargo build --verbose --target aarch64-apple-darwin
|
||||
- name: Intel mac Build
|
||||
uses: Shogan/rust-musl-action@v1.0.2
|
||||
with:
|
||||
args: cargo build --verbose --target x86_64-apple-darwin
|
||||
# - name: Setup build lib
|
||||
# run: sudo apt install -y mingw-w64
|
||||
# - name: x86-64-windows(msvc) Build
|
||||
# run: cargo build --verbose --target x86_64-pc-windows-msvc
|
||||
# - name: i686-windows(msvc) Build
|
||||
# run: cargo build --verbose --target i686-pc-windows-msvc
|
||||
- name: Linux musl Build
|
||||
uses: Shogan/rust-musl-action@v1.0.2
|
||||
with:
|
||||
run: cross build --verbose --target x86_64-unknown-linux-musl
|
||||
- name: Run tests
|
||||
env:
|
||||
RUST_TEST_THREADS: 1
|
||||
|
||||
Reference in New Issue
Block a user