From c7a25536486fbabcdea816f7dc15e4a0de8cedbc Mon Sep 17 00:00:00 2001 From: Glavo Date: Sun, 26 Feb 2023 05:22:04 +0800 Subject: [PATCH] Update GitHub Action --- .github/workflows/build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 78f44c3..07ba427 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,23 +46,26 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: + target_machine: ["x64", "arm64"] build_type: [Release, Debug] fail-fast: false steps: - uses: actions/checkout@v2 - run: sudo ./script/prepare_linux.sh - - run: python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} + - run: sudo apt-get install g++-9-aarch64-linux-gnu -y + if: ${{ matrix.target_machine == 'arm64' }} + - run: python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }} if: ${{ github.event.inputs.skip_release != 'true' }} env: API_TOKEN: ${{ secrets.API_TOKEN }} - run: PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/checkout.py --version ${{ env.version }} - - run: PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/build.py --build-type ${{ matrix.build_type }} - - run: PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} + - run: PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/build.py --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }} + - run: PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }} - uses: actions/upload-artifact@v2 with: - name: Skia-${{ env.version }}-linux-${{ matrix.build_type }}-x64.zip + name: Skia-${{ env.version }}-linux-${{ matrix.build_type }}-${{ matrix.target_machine }}.zip path: '*.zip' - - run: python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} + - run: python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }} if: ${{ github.event.inputs.skip_release != 'true' }} env: API_TOKEN: ${{ secrets.API_TOKEN }}