-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.57 KB
/
build-xc-matrix-entry.yml
File metadata and controls
55 lines (47 loc) · 1.57 KB
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
name: Build - XCFramework Matrix Entry
on:
workflow_call:
inputs:
module:
required: true
type: string
artifact-name:
required: true
type: string
kotlin-version:
description: "Override Kotlin version?"
required: false
default: ""
type: string
testballoon-version:
description: "Override TestBalloon version (full version string)?"
required: false
default: ""
type: string
jobs:
build:
name: "Build XCFramework (macos-latest) - ${{ inputs.module }}"
runs-on: macos-latest
timeout-minutes: 120
env:
KOTLIN_VERSION_ENV: ${{ inputs.kotlin-version }}
TESTBALLOON_VERSION_OVERRIDE: ${{ inputs.testballoon-version }}
steps:
- name: Common setup
uses: a-sit-plus/internal-workflows/.github/actions/common-setup@feature/modularTests
- name: Build klibs
run: ./gradlew iosArm64MainKlibrary iosX64MainKlibrary
- name: Build XCFramework
run: ./gradlew assemble${{ inputs.artifact-name }}XCFramework
- name: Upload debug XCFramework
uses: actions/upload-artifact@v6
with:
name: ${{ inputs.artifact-name }}-debug.xcframework
path: ${{ inputs.name }}/build/XCFrameworks/debug/
if-no-files-found: error
- name: Upload release XCFramework
uses: actions/upload-artifact@v6
with:
name: ${{ inputs.artifact-name }}-release.xcframework
path: ${{ inputs.name }}/build/XCFrameworks/release/
if-no-files-found: error