Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/build_artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,35 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
ref: ${{ inputs.branch }}

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode.app

- name: Install xcbeautify
run: brew install xcbeautify

- name: Build for iOS Simulator
run: |
set -o pipefail
xcodebuild \
-project App/Landmarks.xcodeproj \
-scheme Landmarks \
-sdk iphonesimulator \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 17' \
-derivedDataPath build \
clean build
clean build | xcbeautify

- name: Zip .app
run: |
cd build/Build/Products/Debug-iphonesimulator
zip -r Landmarks.app.zip Landmarks.app

- name: Upload Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: Landmarks-iOS
path: build/Build/Products/Debug-iphonesimulator/Landmarks.app.zip
Expand Down
48 changes: 43 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,47 @@ on:
workflow_dispatch:

jobs:
macos-test:
runs-on: macOS-12
package-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: swift test
- uses: actions/checkout@v6

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode.app

- name: Run Swift package tests
run: swift test

app-builds:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
include:
- name: iOS app
scheme: Landmarks
destination: platform=iOS Simulator,name=iPhone 17
extra_args: ""
- name: macOS app
scheme: MacLandmarks
destination: platform=macOS
extra_args: CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO
steps:
- uses: actions/checkout@v6

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode.app

- name: Install xcbeautify
run: brew install xcbeautify

- name: Build ${{ matrix.name }}
run: |
set -o pipefail
xcodebuild \
-project App/Landmarks.xcodeproj \
-scheme "${{ matrix.scheme }}" \
-configuration Debug \
-destination "${{ matrix.destination }}" \
${{ matrix.extra_args }} \
build | xcbeautify
Loading