-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (47 loc) · 1.22 KB
/
createRelease.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
name: Create new release
on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
required: true
type: string
permissions:
contents: read
jobs:
test:
name: Run Tests
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode 14
run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app
- name: Test
run: make XC_LOG=tests tests
- name: Attach Xcode logs
if: '!cancelled()'
uses: actions/upload-artifact@v4
with:
name: xcode-tests-logs
path: "*-tests.log"
release:
needs: [test]
runs-on: macos-13
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode 14
run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app
- name: Build and upload XCFrameworks, recreate tag
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make XC_LOG=archive version=${{ github.event.inputs.version }} github_release
- name: Attach Xcode logs
if: '!cancelled()'
uses: actions/upload-artifact@v4
with:
name: xcode-archive-logs
path: "*-archive.log"