forked from nachaphon-phontree/inspect
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 1.11 KB
/
ci.yml
File metadata and controls
46 lines (35 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
pull_request:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: macos-26
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-ios,aarch64-apple-ios-sim,x86_64-apple-ios
- name: Show Xcode version
run: xcodebuild -version
- name: Install tools
run: brew install xcodegen swiftlint
- name: Lint
run: swiftlint lint --quiet --strict Apps Packages/InspectCore/Sources
- name: Test InspectCore package
shell: bash
run: |
set -o pipefail
swift test --package-path Packages/InspectCore
- name: Generate Xcode project
run: xcodegen generate
- name: Build iOS app for Simulator
shell: bash
run: |
set -o pipefail
xcodebuild -scheme Inspect -project Inspect.xcodeproj -destination 'generic/platform=iOS Simulator' build | xcbeautify