Skip to content

Commit

Permalink
feat: build all
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Dec 25, 2024
1 parent d4185a8 commit fbd1a71
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit fbd1a71

Please sign in to comment.