diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-05-09 14:46:35 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-05-09 14:46:35 +0800 |
commit | a7db17de1528dedd6bcc083a28e575eb9be34885 (patch) | |
tree | af2536c188c73f20d266a484ce8695f6ce33778e /.github | |
parent | 4becf36bb16054e9939fb48d45d57e1e7da1e603 (diff) |
Re-add arm builds
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b9656c..fcce43e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,12 +74,16 @@ jobs: EXE_NAME: dua strategy: matrix: - build: [linux, macos, win-msvc, win-gnu, win32-msvc] + build: [linux, linux-arm, macos, win-msvc, win-gnu, win32-msvc] include: - build: linux os: ubuntu-18.04 rust: stable target: x86_64-unknown-linux-musl + - build: linux-arm + os: ubuntu-18.04 + rust: nightly + target: arm-unknown-linux-gnueabihf - build: macos os: macos-latest rust: stable @@ -157,7 +161,14 @@ jobs: - name: Strip release binary (linux and macos) if: matrix.build == 'linux' || matrix.build == 'macos' run: strip "target/${{ matrix.target }}/release/${{ env.EXE_NAME }}" - + - name: Strip release binary (arm) + if: matrix.build == 'linux-arm' + run: | + docker run --rm -v \ + "$PWD/target:/target:Z" \ + rustembedded/cross:arm-unknown-linux-gnueabihf \ + arm-linux-gnueabihf-strip \ + /target/arm-unknown-linux-gnueabihf/release/${{ env.EXE_NAME }} - name: Build archive shell: bash run: | |