-
Notifications
You must be signed in to change notification settings - Fork 22
37 lines (34 loc) · 1014 Bytes
/
examples.yml
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
name: Examples
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
tests:
strategy:
matrix:
path:
[
"./swift-examples/hello-world/greeter",
"./swift-examples/hello-world-macro/greeter",
"./swift-examples/hello-world-macro-multi-crate/greeter",
]
target: [
"platform=macOS,arch=x86_64",
"generic/platform=iOS",
# 'platform=iOS Simulator,os=latest'
]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install
run: cargo install --force --path .
- name: Build example libraries
working-directory: ${{ matrix.path }}
run: cargo swift package --accept-all
- name: Build example apps
working-directory: ${{ matrix.path }}/../app
run: xcodebuild -scheme App -destination "${{ matrix.target }}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO