Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBernard03 authored Sep 21, 2024
1 parent c873ab1 commit ace0180
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
runs-on: macos-13
steps:
- name: Checkout source code
uses: actions/checkout@v3
Expand All @@ -25,28 +22,11 @@ jobs:
distribution: 'zulu'
java-version: '17'

- name: Set up Gradle (Windows)
if: matrix.os == 'windows-latest'
uses: gradle/gradle-build-action@v2

- name: Build the app (macOS)
if: matrix.os == 'macos-latest'
- name: Build the app
run: ./gradlew packageDmg

- name: Build the app (Windows)
if: matrix.os == 'windows-latest'
run: ./gradlew packageMsi

- name: Upload build artifacts (macOS)
if: matrix.os == 'macos-latest'
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: macos-build
path: /Users/runner/work/AndroidTools/AndroidTools/composeApp/build/compose/binaries/main/dmg

- name: Upload build artifacts (Windows)
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
with:
name: windows-build
path: /Users/runner/work/AndroidTools/AndroidTools/composeApp/build/

0 comments on commit ace0180

Please sign in to comment.