Browse Source

Merge pull request #597 from dora-rs/cross-check-ci

Check build for cross-compiled targets on CI
tags/v0.3.6-rc0
Haixuan Xavier Tao GitHub 1 year ago
parent
commit
11301ab942
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 32 additions and 0 deletions
  1. +32
    -0
      .github/workflows/ci.yml

+ 32
- 0
.github/workflows/ci.yml View File

@@ -421,3 +421,35 @@ jobs:
override: true
- name: Typos check with custom config file
uses: crate-ci/typos@master

cross-check:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: ubuntu-20.04
target: x86_64-unknown-linux-gnu
- runner: ubuntu-20.04
target: i686-unknown-linux-gnu
- runner: ubuntu-20.04
target: aarch64-unknown-linux-gnu
- runner: ubuntu-20.04
target: aarch64-unknown-linux-musl
- runner: ubuntu-20.04
target: armv7-unknown-linux-musleabihf
- runner: macos-12
target: aarch64-apple-darwin
- runner: macos-12
target: x86_64-apple-darwin
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: r7kamura/rust-problem-matchers@v1.1.0
- name: "Add toolchains"
run: rustup target add ${{ matrix.platform.target }}
- name: "Build"
uses: actions-rs/cargo@v1
with:
use-cross: true
command: check
args: --target ${{ matrix.platform.target }} -p dora-cli

Loading…
Cancel
Save