-
Notifications
You must be signed in to change notification settings - Fork 233
99 lines (94 loc) · 3.33 KB
/
release.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: release
on:
push:
tags:
- 'v*.*.*'
jobs:
# First machine, runs BP tests batch 1
integration_tests1:
name: Instance Test 1
runs-on: macos-13
steps:
# actions/checkout@v2 but we use the SHA1 because tags can be re-written in git
- uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598
- name: Select Xcode 15.1
run: sudo xcode-select -s /Applications/Xcode_15.1.app
- name: Run Bluepill tests
run: ./scripts/bluepill.sh instance_tests1
- name: Capture xcresult files
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: xcresults-bp-tests1
path: build/**/*.xcresult
retention-days: 14
# Second machine, runs BP tests batch 2
integration_tests2:
name: Instance Test 2
runs-on: macos-13
steps:
# actions/checkout@v2 but we use the SHA1 because tags can be re-written in git
- uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598
- name: Select Xcode 15.1
run: sudo xcode-select -s /Applications/Xcode_15.1.app
- name: Run Bluepill tests
run: ./scripts/bluepill.sh instance_tests2
- name: Capture xcresult files
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: xcresults-bp-tests2
path: build/**/*.xcresult
retention-days: 14
# Third machine, runs BP tests batch 3
integration_tests3:
name: Instance Test 3
runs-on: macos-13
steps:
# actions/checkout@v2 but we use the SHA1 because tags can be re-written in git
- uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598
- name: Select Xcode 15.1
run: sudo xcode-select -s /Applications/Xcode_15.1.app
- name: Run Bluepill tests
run: ./scripts/bluepill.sh instance_tests3
- name: Capture xcresult files
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: xcresults-bp-tests2
path: build/**/*.xcresult
retention-days: 14
# Fourth machine, runs Bluepill tests and makes release build
build:
name: BP Test and build
runs-on: macos-13
steps:
# actions/checkout@v2 but we use the sha because tags can be rewritten in git
- uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598
- name: Report event trigger data
run: |
echo "Event ${{ github.event_name }}, ref: ${{ github.ref }}"
- name: Select Xcode 15.1
run: sudo xcode-select -s /Applications/Xcode_15.1.app
- name: Run Bluepill tests
run: ./scripts/bluepill.sh runner_tests
- name: Capture xcresult files
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: xcresults-bluepill-tests
path: build/**/*.xcresult
retention-days: 14
- name: Build Bluepill
run: ./scripts/bluepill.sh build
- name: Release
# softprops/action-gh-release@v1 but we use the sha because tags can be rewritten in git
uses: softprops/action-gh-release@78c309ef59fdb9557cd6574f2e0be552936ed728
with:
files: 'build/*.zip'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Cocoapods
run: pod trunk push Bluepill.podspec
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}