From fbd1a71ad37433d9191d1521ac4417480ae8f0f6 Mon Sep 17 00:00:00 2001 From: redhoodsu Date: Wed, 25 Dec 2024 17:26:59 +0800 Subject: [PATCH] feat: build all --- .github/workflows/build.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3994d4..018d8b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,20 +2,17 @@ name: Build on: workflow_dispatch: - inputs: - os: - type: choice - description: Operating System - required: true - options: - - windows - - ubuntu - - macos + release: + types: [created] jobs: build: - runs-on: ${{ github.event.inputs.os }}-latest + runs-on: ${{ matrix.os }}-latest + + strategy: + matrix: + os: [windows, macos, ubuntu] steps: - uses: actions/checkout@v4 @@ -27,7 +24,7 @@ jobs: java-version: '17' distribution: 'temurin' - uses: android-actions/setup-android@v3 - - if: github.event.inputs.os == 'ubuntu' + - if: matrix.os == 'ubuntu' run: | sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils - run: | @@ -38,7 +35,7 @@ jobs: npm run pack - uses: actions/upload-artifact@v4 with: - name: ${{ github.event.inputs.os }} + name: ${{ matrix.os }} path: | release/**/*.dmg release/**/*.exe