diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..b55dfdd --- /dev/null +++ b/.gitea/workflows/build.yml @@ -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 diff --git a/.gitignore b/.gitignore index 076d46d..44ab1ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .DS_Store xcuserdata/ DerivedData/ +build/ +Build/