Jerry Yion
07/26/2022, 7:28 AMArkadii Ivanov
07/26/2022, 7:34 AMJerry Yion
07/26/2022, 7:36 AMimplementation(compose.desktop.currentOs)
I think the root cause is this configArkadii Ivanov
07/26/2022, 7:41 AMJerry Yion
07/26/2022, 7:44 AMStefan Oltmann
07/26/2022, 8:29 AMcreateDistributable
on a Mac.Jerry Yion
07/26/2022, 8:31 AMYogeshvu
07/26/2022, 3:32 PMStefan Oltmann
07/27/2022, 6:38 AMwindows:
name: Windows
needs: build
runs-on: windows-latest
timeout-minutes: 60
steps:
- name: Checkout workspace
uses: actions/checkout@v3
- name: Gradle Cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/native
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Set up Java JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17.0.3+7'
- name: Build
run: |
chmod +x ./gradlew
./gradlew createDistributable -x test --parallel
move "desktop\build\compose\binaries\main\app\MyApp" .
Compress-Archive -Path "MyApp" -DestinationPath my-app.zip
- uses: actions/upload-artifact@v3
with:
if-no-files-found: error
name: windows
path: my-app.zip
For a mac build you just change runs-on
to macos-latest
Arkadii Ivanov
07/27/2022, 7:06 AMYogeshvu
07/27/2022, 3:40 PM