-
-
Notifications
You must be signed in to change notification settings - Fork 33
70 lines (66 loc) · 2.04 KB
/
build.yml
File metadata and controls
70 lines (66 loc) · 2.04 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-macos:
runs-on: macOS-15
steps:
- name: Checkout
uses: actions/checkout@v6
- name: List Xcodes
run: ls /Applications
- name: Force Xcode 16.4
run: sudo xcode-select -switch /Applications/Xcode_16.4.app
- name: Version
run: swift --version
- name: Cache swift-bundler
id: cache-swift-bundler
uses: actions/cache@v5
with:
path: sbun
key: ${{ runner.os }}-swift-bundler
- name: Build swift-bundler
if: steps.cache-swift-bundler.outputs.cache-hit != 'true'
run: |
git clone https://github.com/moreSwift/swift-bundler
cd swift-bundler
git checkout 6d72c4f442cc2c57c2559f3df21b3777b1d0a917
swift build --product swift-bundler
cp .build/debug/swift-bundler ../sbun
- name: Build arm64
run: |
./sbun bundle -c release --arch arm64
mv "$(./sbun bundle --show-bundle-path)" DeltaClient-arm64.app
- name: Build x86
run: |
./sbun bundle -c release --arch x86_64
mv "$(./sbun bundle --show-bundle-path)" DeltaClient-x86_64.app
- name: Zip .app (arm64)
run: zip -r DeltaClient-arm64.zip DeltaClient-arm64.app
- name: Zip .app (x86_64)
run: zip -r DeltaClient-x86_64.zip DeltaClient-x86_64.app
- name: Upload artifact (arm64)
uses: actions/upload-artifact@v7
with:
name: DeltaClient-arm64
path: ./DeltaClient-arm64.zip
- name: Upload artifact (x86_64)
uses: actions/upload-artifact@v7
with:
name: DeltaClient-x86_64
path: ./DeltaClient-x86_64.zip
build-linux:
runs-on: ubuntu-latest
steps:
- name: Setup Swift
uses: SwiftyLab/setup-swift@latest
with:
swift-version: "5.9"
- name: Checkout
uses: actions/checkout@v6
- name: Build
run: |
cd Sources/Core
swift build