Add Gitea workflow for macOS builds
Some checks failed
Build macOS App / build (push) Has been cancelled
Some checks failed
Build macOS App / build (push) Has been cancelled
This commit is contained in:
34
.gitea/workflows/build.yml
Normal file
34
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Build macOS App
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build release configuration
|
||||
run: |
|
||||
xcodebuild \
|
||||
-project iKeyMon.xcodeproj \
|
||||
-scheme iKeyMon \
|
||||
-configuration Release \
|
||||
-derivedDataPath build \
|
||||
clean build
|
||||
|
||||
- name: Package app bundle
|
||||
run: |
|
||||
mkdir -p artifacts
|
||||
cd build/Build/Products/Release
|
||||
zip -r "../../../../artifacts/iKeyMon.app.zip" iKeyMon.app
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: iKeyMon-macos-app
|
||||
path: artifacts/iKeyMon.app.zip
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
||||
.DS_Store
|
||||
xcuserdata/
|
||||
DerivedData/
|
||||
build/
|
||||
Build/
|
||||
|
||||
Reference in New Issue
Block a user