Skip to content

Commit d902037

Browse files
Add GitHub Actions workflow (#71)
Add GitHub Actions workflow
1 parent 85eeaa9 commit d902037

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: WaterfallGridSample
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
name: Build and Test
10+
runs-on: macos-14
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: List available Xcode versions
16+
run: ls /Applications | grep Xcode
17+
18+
- name: Set up Xcode version
19+
run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
20+
21+
- name: Show current version of Xcode
22+
run: xcodebuild -version
23+
24+
- name: Show Xcode embedded SDKs
25+
run: xcodebuild -showsdks
26+
27+
- name: Show buildable schemes
28+
run: xcodebuild -list
29+
30+
- name: Show eligible build destinations
31+
run: xcodebuild -showdestinations -scheme WaterfallGrid
32+
33+
- name: Install Bundler
34+
run: gem install bundler
35+
36+
- name: Install xcpretty
37+
run: gem install xcpretty
38+
39+
- name: Build and run tests (iOS)
40+
run: xcodebuild test -scheme WaterfallGrid -destination "platform=iOS Simulator,OS=17.5,name=iPhone 15 Pro" | xcpretty
41+
42+
- name: Build (macOS)
43+
run: xcodebuild build -scheme WaterfallGrid -destination "platform=macOS,arch=arm64e,name=My Mac" | xcpretty
44+
45+
- name: Build (Mac Catalyst)
46+
run: xcodebuild build -scheme WaterfallGrid -destination "platform=macOS,arch=arm64e,variant=Mac Catalyst,name=My Mac" | xcpretty
47+
48+
- name: Build (tvOS)
49+
run: xcodebuild build -scheme WaterfallGrid -destination "platform=tvOS Simulator,OS=17.5,name=Apple TV" | xcpretty
50+
51+
- name: Build (watchOS)
52+
run: xcodebuild build -scheme WaterfallGrid -destination "platform=watchOS Simulator,OS=10.5,name=Apple Watch Ultra 2 (49mm)" | xcpretty

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ A waterfall grid layout view for SwiftUI.
77
</p>
88

99
<p align="center">
10-
<img src="https://img.shields.io/bitrise/deaf4a89eca9a69a?token=tU52Wx6TQeKRWAiTE5iS3g&style=flat" />
1110
<img src="https://img.shields.io/badge/Swift-5.1-red?style=flat" />
1211
<img src="https://img.shields.io/cocoapods/p/WaterfallGrid" />
1312
<a href="https://swift.org/package-manager">

0 commit comments

Comments
 (0)