-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.22 KB
/
Build-OpenMacHelper.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
name: Build OpenMacHelper
on:
- push
- pull_request
- workflow_dispatch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Build-OpenMacHelper:
name: Build OpenMacHelper
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install SwiftLint
run: |
/usr/bin/curl --location https://github.com/realm/SwiftLint/releases/latest/download/SwiftLint.pkg --output SwiftLint.pkg
/usr/bin/sudo /usr/sbin/installer -package SwiftLint.pkg -target /
- name: Run SwiftLint
run: /usr/local/bin/swiftlint lint --strict --reporter github-actions-logging
- name: Build OpenMacHelper.app
run: |
/usr/bin/sudo /usr/bin/xcode-select --switch /Applications/Xcode_16.0.app
/usr/bin/xcodebuild build CODE_SIGNING_ALLOWED=NO
- name: Zip OpenMacHelper.app
run: |
/bin/mv build/Release/OpenMacHelper.app OpenMacHelper.app
/usr/bin/zip --recurse-paths OpenMacHelper.zip OpenMacHelper.app
- name: Upload OpenMacHelper.zip
uses: actions/upload-artifact@v4
with:
name: OpenMacHelper
path: OpenMacHelper.zip