-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (44 loc) · 1.31 KB
/
release.yml
File metadata and controls
54 lines (44 loc) · 1.31 KB
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
name: Build Releases
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@1.85
with:
targets: aarch64-apple-darwin,x86_64-apple-darwin
- name: Build xcframework
run: sh build-xcframework.sh
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.2'
- name: Xcode build
run: |
cd ui
xcodebuild archive \
-scheme iPortForwarder \
-archivePath build.xcarchive \
-configuration Release \
ONLY_ACTIVE_ARCH=NO
- name: Make dmg
run: |
brew install graphicsmagick imagemagick
npm install --global create-dmg
# Ignore the failure since there is no code signing identity,
# the DMG is still created and fine.
create-dmg 'ui/build.xcarchive/Products/Applications/iPortForwarder.app' || true
mv iPortForwarder*.dmg iPortForwarder.dmg
- name: Upload Release Assets
uses: softprops/action-gh-release@v2
with:
files: ${{ github.workspace }}/iPortForwarder.dmg