chore: release v0.1.16 #147
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test cross-compilation targets | |
| on: | |
| push: | |
| branches: ["master"] | |
| paths: | |
| - "**/*.rs" | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - ".github/workflows/rust*.yml" | |
| pull_request: | |
| branches: ["master"] | |
| paths: | |
| - "**/*.rs" | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - ".github/workflows/rust*.yml" | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_NET_GIT_FETCH_WITH_CLI: true | |
| CARGO_NET_RETRY: 10 | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| RUSTFLAGS: -D warnings | |
| RUSTUP_MAX_RETRIES: 10 | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| test-cross: | |
| name: ${{ matrix.target }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - target: aarch64-unknown-linux-gnu | |
| os: ubuntu-22.04 | |
| # there's a problem with the aarch64 musl rust toolchain | |
| # will probably want to revisit this eventually | |
| # - target: aarch64-unknown-linux-musl | |
| # os: ubuntu-22.04 | |
| - target: aarch64-apple-darwin | |
| os: macos-latest | |
| - target: aarch64-pc-windows-msvc | |
| os: windows-2022 | |
| - target: x86_64-unknown-linux-gnu | |
| os: ubuntu-22.04 | |
| - target: x86_64-unknown-linux-musl | |
| os: ubuntu-22.04 | |
| - target: x86_64-apple-darwin | |
| os: macos-13 | |
| - target: x86_64-pc-windows-msvc | |
| os: windows-2022 | |
| - target: x86_64-unknown-freebsd | |
| os: ubuntu-22.04 | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - uses: taiki-e/setup-cross-toolchain-action@v1 | |
| with: | |
| target: ${{ matrix.target }} | |
| if: startsWith(matrix.os, 'ubuntu') && !contains(matrix.target, '-musl') | |
| - uses: taiki-e/install-action@cross | |
| if: contains(matrix.target, '-musl') | |
| - run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >> "${GITHUB_ENV}" | |
| if: endsWith(matrix.target, 'windows-msvc') | |
| - run: | | |
| rustup target add "$TARGET_TRIPLE" | |
| cargo b --target "$TARGET_TRIPLE" | |
| env: | |
| TARGET_TRIPLE: ${{ matrix.target }} | |