Skip to content

Commit 04ac2ec

Browse files
committed
ci: add GitHub Actions workflow for automated build
- Build on push/PR to main and manual dispatch - Archive with Release configuration, no code signing - Upload NetworkStatusBar.app as artifact
1 parent 01c9a1d commit 04ac2ec

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Select Xcode
17+
run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
18+
19+
- name: Build
20+
run: |
21+
xcodebuild archive \
22+
-scheme NetworkStatusBar \
23+
-configuration Release \
24+
-archivePath ${{ runner.temp }}/NetworkStatusBar.xcarchive \
25+
CODE_SIGN_IDENTITY="-" \
26+
CODE_SIGNING_REQUIRED=NO \
27+
CODE_SIGNING_ALLOWED=NO
28+
29+
- name: Export app
30+
run: |
31+
cp -R "${{ runner.temp }}/NetworkStatusBar.xcarchive/Products/Applications/NetworkStatusBar.app" \
32+
"${{ runner.temp }}/NetworkStatusBar.app"
33+
34+
- name: Upload artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: NetworkStatusBar
38+
path: ${{ runner.temp }}/NetworkStatusBar.app

0 commit comments

Comments
 (0)