From 3a3c030708c24e75d674392493829faa4bd949cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Thu, 16 Nov 2023 14:43:55 -0800 Subject: [PATCH] Build for aarch64-linux-android --- .github/workflows/build.yml | 24 +++++++++++++----------- .github/workflows/test.yml | 2 -- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index abb8c2fe9..ba47f8fe0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,26 +1,28 @@ name: Build on: - workflow_dispatch: + push: jobs: build: name: Build statically linked binary runs-on: ubuntu-latest + strategy: + matrix: + target: [ + aarch64-linux-android, + arm-linux-androideabi, + armv7-linux-androideabi, + x86_64-unknown-linux-musl, + ] steps: - uses: actions/checkout@v4 - - name: Install dependencies - run: sudo apt-get install musl-tools - - uses: actions-rs/toolchain@v1 + - uses: taiki-e/setup-cross-toolchain-action@v1 with: - toolchain: stable - profile: minimal - override: true - target: x86_64-unknown-linux-musl + target: ${{ matrix.target }} - run: | - cargo install --path=cli --root=. --target x86_64-unknown-linux-musl - strip bin/blazecli + cargo install --path=cli --root=. --target ${{ matrix.target }} - uses: actions/upload-artifact@v3 with: - name: blazecli + name: blazecli-${{ matrix.target }} path: bin/blazecli diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f5547ca4c..dc9db149d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,6 @@ name: Test on: - push: - pull_request: workflow_call: env: