52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
# Gitea Actions reads this path (.github/workflows) as well as .gitea/workflows.
|
|
# iOS builds require a macOS runner: register a Gitea act_runner on a Mac with
|
|
# labels matching `runs-on` below (macos-14 / macos-15), or change them to your
|
|
# runner's label. On GitHub-hosted runners these labels work as-is.
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Build · ${{ matrix.os }} · ${{ matrix.configuration }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ macos-14, macos-15 ]
|
|
configuration: [ Debug, Release ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Xcode version
|
|
run: xcodebuild -version
|
|
|
|
- name: Install XcodeGen
|
|
run: brew install xcodegen
|
|
|
|
- name: Generate Xcode project
|
|
run: xcodegen generate
|
|
|
|
- name: Build (${{ matrix.configuration }}, iOS Simulator)
|
|
run: |
|
|
set -o pipefail
|
|
xcodebuild \
|
|
-project Jarvis.xcodeproj \
|
|
-scheme Jarvis \
|
|
-configuration ${{ matrix.configuration }} \
|
|
-sdk iphonesimulator \
|
|
-destination 'generic/platform=iOS Simulator' \
|
|
-derivedDataPath build \
|
|
CODE_SIGNING_ALLOWED=NO \
|
|
CODE_SIGNING_REQUIRED=NO \
|
|
build
|