From dddfa4d95c42d40a086ca3d5f1a03799f5aa12c4 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 21 Jan 2022 23:47:03 +0900 Subject: [PATCH] Distribute prebuilt binaries for aarch64 Linux --- .github/workflows/ci.yml | 9 ++++++--- .github/workflows/release.yml | 6 +++--- CHANGELOG.md | 2 ++ tests/test.rs | 2 -- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d425ad03..a73b1a07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,15 +52,18 @@ jobs: if: startsWith(matrix.rust, 'nightly') - run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >> "${GITHUB_ENV}" if: startsWith(matrix.os, 'windows') - - run: cargo test --workspace + - run: cargo test --workspace --all-features - run: cargo minimal-versions build --workspace --all-features --ignore-private if: startsWith(matrix.rust, 'nightly') cross: + name: build (${{ matrix.target }}) strategy: fail-fast: false matrix: include: + - target: aarch64-unknown-linux-gnu + - target: aarch64-unknown-linux-musl - target: x86_64-unknown-linux-musl runs-on: ${{ matrix.os || 'ubuntu-18.04' }} steps: @@ -69,7 +72,7 @@ jobs: persist-credentials: false - uses: taiki-e/github-actions/install-rust@main - uses: taiki-e/install-action@cross - - run: cross test --target ${{ matrix.target }} + - run: cross build --target ${{ matrix.target }} build: runs-on: ubuntu-18.04 @@ -90,7 +93,7 @@ jobs: with: component: clippy,rustfmt - uses: taiki-e/install-action@shellcheck - - run: cargo fmt --all -- --check + - run: cargo fmt --all --check if: always() - run: cargo clippy --workspace --all-features --all-targets if: always() diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c05be8ea..920e35ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,15 +52,15 @@ jobs: strategy: matrix: include: + - target: aarch64-unknown-linux-gnu + - target: aarch64-unknown-linux-musl - target: x86_64-unknown-linux-gnu - os: ubuntu-18.04 - target: x86_64-unknown-linux-musl - os: ubuntu-18.04 - target: x86_64-apple-darwin os: macos-10.15 - target: x86_64-pc-windows-msvc os: windows-2019 - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os || 'ubuntu-18.04' }} steps: - uses: actions/checkout@v2 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index b6666c87..637955ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com ## [Unreleased] +- Distribute prebuilt binaries for aarch64 Linux (gnu and musl). + ## [0.1.15] - 2022-01-06 - Fix bug in `show-env` subcommand. ([#121](https://github.com/taiki-e/cargo-llvm-cov/pull/121)) diff --git a/tests/test.rs b/tests/test.rs index 84bb9483..7b121da5 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1,5 +1,3 @@ -// TODO: It seems rustup is not installed in the docker image provided by cross. -#![cfg(not(target_env = "musl"))] #![warn(rust_2018_idioms)] mod auxiliary;