-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (39 loc) · 1.05 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
name: Create new release
on:
release:
types: [created]
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
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.release.tag_name }} github
- name: Attach Xcode logs
if: '!cancelled()'
uses: actions/upload-artifact@v4
with:
name: xcode-archive-logs
path: "*-archive.log"