diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f06f6cc0b..422aa3df6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,13 +47,20 @@ jobs: toolchain: ${{ matrix.rust }} components: rustfmt, clippy + - name: Install Cross on Ubuntu + if: matrix.os == 'ubuntu-latest' + run: cargo install --git https://github.com/cross-rs/cross.git --rev 085092c cross + - name: Check formatting run: cargo fmt --all -- --check - name: Build - id: build run: cargo build --verbose + - name: Build target aarch64-linux-android + if: matrix.os == 'ubuntu-latest' + run: cross build --target aarch64-linux-android --verbose + # This is useful for debugging problems when the expected build artifacts # (like shell completions and man pages) aren't generated. - name: Show build.rs stderr @@ -103,6 +110,13 @@ jobs: name: ${{ matrix.os }}-${{ matrix.rust }}-failed_snapshots path: '**/*.snap.new' + - name: Upload android binary + if: ${{ matrix.os == 'ubuntu-latest' && ( success() || steps.build.outcome == 'success' ) }} + uses: actions/upload-artifact@v3 + with: + name: aarch64-linux-android-${{ matrix.rust }} + path: target/aarch64-linux-android/debug/bandwhich + - name: Upload unix binary if: ${{ matrix.os != 'windows-latest' && ( success() || steps.build.outcome == 'success' ) }} uses: actions/upload-artifact@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a9ea03352..5a2a57546 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,23 +52,32 @@ jobs: strategy: matrix: build: + - aarch64-linux-android - linux-x64-gnu - linux-x64-musl - macos-x64 - windows-x64-msvc include: + - build: aarch64-linux-android + os: ubuntu-latest + target: aarch64-linux-android + cargo: cross - build: linux-x64-gnu os: ubuntu-latest target: x86_64-unknown-linux-gnu + cargo: cargo - build: linux-x64-musl os: ubuntu-latest target: x86_64-unknown-linux-musl + cargo: cargo - build: macos-x64 os: macos-latest target: x86_64-apple-darwin + cargo: cargo - build: windows-x64-msvc os: windows-latest target: x86_64-pc-windows-msvc + cargo: cargo steps: - name: Checkout repository @@ -84,13 +93,17 @@ jobs: if: matrix.target == 'x86_64-unknown-linux-musl' run: sudo apt-get install -y --no-install-recommends musl-tools + - name: Install cross + if: matrix.cargo == 'cross' + run: cargo install --git https://github.com/cross-rs/cross.git --rev 085092c cross + - name: Build release binary shell: bash env: RUSTFLAGS: "-C strip=symbols" run: | mkdir -p "$BANDWHICH_GEN_DIR" - cargo build --verbose --release --target ${{ matrix.target }} + ${{ matrix.cargo }} build --verbose --release --target ${{ matrix.target }} - name: Collect build artifacts shell: bash diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f31b3e5a..362a4afae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [Unreleased] ## Fixed + * Remove redundant imports #377 - @cyqsimon * CI: use GitHub API to exempt dependabot from changelog requirement #378 - @cyqsimon * Remove unnecessary logging synchronisation #381 - @cyqsimon @@ -15,10 +16,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * Support build for `target_os`` `android` #384 - @flxo ## Added + * CI: include generated assets in release archive #359 - @cyqsimon * Add PID column to the process table #379 - @notjedi +* CI: add builds for target `aarch64-linux-android` #384 - @flxo ## Changed + * CI: strip release binaries for all targets #358 - @cyqsimon * Bump MSRV to 1.74 (required by clap 4.5; see #373)