From 1b1ce882a532c583848a8de70e01894b5550f741 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Wed, 3 Apr 2024 21:13:41 +0800 Subject: [PATCH] Update CI --- .github/workflows/build.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 17c646a3..c7f24957 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,9 +25,9 @@ jobs: id: set-matrix run: | if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then - echo "matrix=[\"ubuntu-latest\", \"arm64\"]" >> $GITHUB_OUTPUT + echo 'matrix=[{"runner": "ubuntu-latest", "arch": "amd64"}, {"runner": "arm64", "arch": "arm64"]' >> $GITHUB_OUTPUT else - echo "matrix=[\"ubuntu-latest\"]" >> $GITHUB_OUTPUT + echo 'matrix=[{"runner": "ubuntu-latest", "arch": "amd64"}]' >> $GITHUB_OUTPUT fi tarball: @@ -70,7 +70,8 @@ jobs: matrix: os: ${{fromJson(needs.setup-matrix.outputs.matrix)}} package: [deb, rpm, pkg, binary] - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os.runner }} + name: build-gp (${{ matrix.package }}, ${{ matrix.os.arch }}) steps: - name: Prepare workspace run: | @@ -98,7 +99,7 @@ jobs: - name: Upload ${{ matrix.package }} package uses: actions/upload-artifact@v3 with: - name: artifact-gp-${{ matrix.os }}-${{ matrix.package }} + name: artifact-gp-${{ matrix.package }}-${{ matrix.os.arch }} if-no-files-found: error path: | build-gp-${{ matrix.package }}/artifacts/* @@ -109,7 +110,8 @@ jobs: strategy: matrix: os: ${{fromJson(needs.setup-matrix.outputs.matrix)}} - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os.runner }} + name: build-gpgui (${{ matrix.os.arch }}) steps: - uses: pnpm/action-setup@v2 with: @@ -148,7 +150,7 @@ jobs: - name: Upload gpgui uses: actions/upload-artifact@v3 with: - name: artifact-gpgui-${{ matrix.os }} + name: artifact-gpgui-${{ matrix.os.arch }} if-no-files-found: error path: | gpgui-source/*.bin.tar.xz