Skip to content

Commit 04086c7

Browse files
committed
ci: add github actions build workflow for macos
builds tome.app and tomehelper on every push to main, uploads zipped artifacts for download without needing xcode locally
1 parent 79d52f9 commit 04086c7

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: macos-15
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: select xcode
17+
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
18+
19+
- name: build tome.app
20+
run: |
21+
xcodebuild \
22+
-project Tome.xcodeproj \
23+
-scheme Tome \
24+
-configuration Release \
25+
-derivedDataPath build/DerivedData \
26+
SYMROOT=build \
27+
CODE_SIGN_IDENTITY="-" \
28+
CODE_SIGNING_REQUIRED=NO \
29+
CODE_SIGNING_ALLOWED=NO \
30+
build
31+
32+
- name: build tomehelper
33+
run: |
34+
xcodebuild \
35+
-project Tome.xcodeproj \
36+
-scheme TomeHelper \
37+
-configuration Release \
38+
-derivedDataPath build/DerivedData \
39+
SYMROOT=build \
40+
CODE_SIGN_IDENTITY="-" \
41+
CODE_SIGNING_REQUIRED=NO \
42+
CODE_SIGNING_ALLOWED=NO \
43+
build
44+
45+
- name: package artifacts
46+
run: |
47+
mkdir -p artifacts
48+
cp -R build/Release/Tome.app artifacts/
49+
cp build/Release/TomeHelper artifacts/
50+
cd artifacts && zip -r ../Tome-${{ github.sha }}.zip .
51+
52+
- name: upload artifact
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: tome-${{ github.sha }}
56+
path: Tome-${{ github.sha }}.zip
57+
retention-days: 30

0 commit comments

Comments
 (0)