-
Notifications
You must be signed in to change notification settings - Fork 14
63 lines (56 loc) · 1.35 KB
/
xcframework.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
57
58
59
60
61
62
63
name: XCFramework
defaults:
run:
shell: bash -eo pipefail {0}
on:
workflow_dispatch:
push:
branches:
- '**'
tags-ignore:
- '**'
paths-ignore:
- '.github/**' # Ignore all files under '.github'
- '!.github/workflows/xcframework.yml' # Except for this workflow
- '.gitignore'
- '.remarkrc'
- '.swiftlint.yml'
- 'codecov.yml'
- 'Documentation/**'
- 'LICENSE'
- 'Package.swift'
- 'README.md'
- 'Tests/**'
- 'CBORCoding.podspec'
jobs:
build:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']
name: Build
runs-on: ${{ matrix.os }}
env:
TMPDIR: /tmp/.cborcoding.xcframework.build
steps:
- name: Select Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: Checkout Code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Environment
run: |
mkdir -p "${TMPDIR}/Output"
mkdir -p "${TMPDIR}/Logs"
- name: Build
run: |
./scripts/xcframework.sh --build-dir "${TMPDIR}" -- RUN_DOCUMENTATION_COMPILER=NO SKIP_SWIFTLINT=YES
- name: Upload Logs
uses: actions/upload-artifact@v3
if: always()
with:
name: BuildLogs
path: ${{ env.TMPDIR }}/Logs/*.log