-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Move non-legacy examples to Swift Package Manager #1666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4827cef
e7319f4
80e47a6
dfffbee
53a5961
ec46631
73678e3
a0dd61d
af5b0c8
2b72b65
6d27fcb
30a3934
a7b7e8e
1df0e6e
ff50fbd
1f902bb
4991feb
79b0b98
e4d4ea9
ad94bb3
5c1c372
b132aec
662d082
2bb3dfa
b650880
1f6a43a
50a0959
0b31b4a
a803127
7f273e3
7f27d68
f4731f4
1564f34
ffbb781
0da362d
1ba7ac4
ef7c1c7
ef3953d
f2d5e43
bf44964
4aaf45f
daec57e
1cbf589
b2b0a7d
acbdb2a
f59dcb6
a04f60f
4b1a828
6841a36
6a96991
164253b
7951a24
ef74e21
3352b82
a1bf982
e441825
e937932
e995363
87968d1
fc8acf5
1d1b3fa
0150020
e9f9d92
5ae1f99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: Analytics | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
@@ -27,8 +30,8 @@ env: | |
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} | ||
|
||
jobs: | ||
cocoapods: | ||
name: cocoapods - ${{ matrix.os }} | ||
spm: | ||
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }}) | ||
runs-on: macOS-15 | ||
strategy: | ||
matrix: | ||
|
@@ -52,28 +55,25 @@ jobs: | |
device: localhost | ||
scheme: AnalyticsExampleMac | ||
test: true | ||
|
||
env: | ||
SPM: false | ||
SPM: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the SPM environment variable still needed? |
||
LEGACY: false | ||
OS: ${{ matrix.os }} | ||
DEVICE: ${{ matrix.device }} | ||
SCHEME: ${{ matrix.scheme }} | ||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | ||
SCHEME: ${{ matrix.scheme || 'AnalyticsExample' }} | ||
DIR: analytics | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Xcode | ||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | ||
- name: Setup | ||
run: | | ||
cd analytics | ||
gem install bundler | ||
bundle install | ||
gem install xcpretty | ||
bundle exec pod install --repo-update | ||
../scripts/install_prereqs/analytics.sh | ||
- name: Build Swift | ||
run: ./scripts/test.sh | ||
env: | ||
TEST: ${{ matrix.test }} | ||
SWIFT_SUFFIX: "" | ||
|
||
#TODO: Add `spm` job. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: Authentication | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
@@ -27,27 +30,26 @@ env: | |
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} | ||
|
||
jobs: | ||
cocoapods: | ||
name: cocoapods | ||
spm: | ||
runs-on: macOS-15 | ||
env: | ||
SPM: false | ||
LEGACY: false | ||
OS: iOS | ||
SETUP: authentication | ||
SPM: true | ||
LEGACY: false | ||
ncooke3 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
DIR: authentication | ||
DEVICE: iPhone 16 | ||
TEST: false | ||
SCHEME: AuthenticationExample | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Xcode | ||
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the xcode-select be migrated to one of the common scripts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Definitely. Will do in future PR. |
||
- name: Setup | ||
run: | | ||
cd authentication | ||
gem install bundler | ||
bundle install | ||
gem install xcpretty | ||
bundle exec pod install --repo-update | ||
../scripts/install_prereqs/authentication.sh | ||
- name: Build Swift | ||
cd $SETUP | ||
../scripts/install_prereqs/${SETUP}.sh | ||
- name: Build and Test SwiftUI (${OS}) | ||
run: ./scripts/test.sh | ||
env: | ||
SWIFT_SUFFIX: "" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: check | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
Uh oh!
There was an error while loading. Please reload this page.