forked from XFrameworks/eligibility
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 2.25 KB
/
publish_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
name: Publish Release
on:
push:
tags:
- '*'
jobs:
publish_release:
runs-on: macos-14 # Use macOS runner for macOS/Xcode environment
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.0'
- name: Build Binaries
run: |
xcodebuild archive \
-project eligibility.xcodeproj \
-scheme eligibility_util \
-configuration Release \
-destination "generic/platform=macOS" \
-archivePath "archives/eligibility_util" \
SKIP_INSTALL=NO \
ARCHS=x86_64
xcodebuild archive \
-project eligibility.xcodeproj \
-scheme eligibility_util_sip \
-configuration Release \
-destination "generic/platform=macOS" \
-archivePath "archives/eligibility_util_sip" \
SKIP_INSTALL=NO \
ARCHS=x86_64
- name: Compute Checksum
id: checksum
run: |
echo "util_md5=$(md5 -q ./archives/eligibility_util.xcarchive/Products/usr/local/bin/eligibility_util)" >> $GITHUB_OUTPUT
echo "util_sip_md5=$(md5 -q ./archives/eligibility_util_sip.xcarchive/Products/usr/local/bin/eligibility_util_sip)" >> $GITHUB_OUTPUT
echo "xcode_path=$(xcrun xcode-select --print-path)" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
body: |
Build Xcode version ${{ steps.checksum.outputs.xcode_path }}
| Name | MD5 |
|--------------------------------------|--------------------------------------------|
| eligibility_util | ${{ steps.checksum.outputs.util_md5 }} |
| eligibility_util_sip | ${{ steps.checksum.outputs.util_sip_md5 }} |
allowUpdates: true
artifacts: "archives/eligibility_util.xcarchive/Products/usr/local/bin/eligibility_util,archives/eligibility_util_sip.xcarchive/Products/usr/local/bin/eligibility_util_sip"
token: ${{ secrets.GITHUB_TOKEN }}