-
Notifications
You must be signed in to change notification settings - Fork 67
56 lines (49 loc) · 1.66 KB
/
build-macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build macOS
on:
push:
branches:
- main
paths-ignore:
- "**/*.md"
pull_request:
paths-ignore:
- "**/*.md"
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: corretto
- name: Mac build
run: |
./gradlew macosX64Test iosX64Test watchosX64Test tvosX64Test \
publishKotlinMultiplatformPublicationToMavenLocal \
publishIosArm64PublicationToMavenLocal \
publishIosSimulatorArm64PublicationToMavenLocal \
publishIosX64PublicationToMavenLocal \
publishMacosX64PublicationToMavenLocal \
publishMacosArm64PublicationToMavenLocal \
publishWatchosArm32PublicationToMavenLocal \
publishWatchosArm64PublicationToMavenLocal \
publishWatchosDeviceArm64PublicationToMavenLocal \
publishWatchosSimulatorArm64PublicationToMavenLocal \
publishWatchosX64PublicationToMavenLocal \
publishTvosArm64PublicationToMavenLocal \
publishTvosSimulatorArm64PublicationToMavenLocal \
publishTvosX64PublicationToMavenLocal \
--no-daemon --stacktrace
- name: Mac sample Gradle build
run: |
cd sample
./gradlew iosX64Test --no-daemon --stacktrace
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g"
- name: Mac sample Xcode simulator build
run: |
cd sample/app-ios
xcodebuild -configuration Debug -scheme SettingsDemo -sdk iphonesimulator -arch x86_64