Skip to content

Merge branch 'main' of github.com:antoniusnaumann/cargo-swift into main #105

Merge branch 'main' of github.com:antoniusnaumann/cargo-swift into main

Merge branch 'main' of github.com:antoniusnaumann/cargo-swift into main #105

Workflow file for this run

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'
]
target: [
'platform=macOS,arch=x86_64',
'generic/platform=iOS',
# 'platform=iOS Simulator,os=latest'
]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- 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