Fixed CI #574
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Swift | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer | |
# for testing | |
PYTHON_BIN: /usr/local/bin/python | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout esctest for testing | |
uses: actions/checkout@v3 | |
with: | |
repository: migueldeicaza/esctest | |
path: esctest | |
- name: List all files, because this is driving me insane, this does not repro anywhere but github | |
run: ls -lR | |
- name: Xcode Mac Build | |
run: xcodebuild -project TerminalApp/MacTerminal.xcodeproj -scheme MacTerminal | |
- name: Xcode iOS Build | |
run: xcodebuild -project TerminalApp/iOSTerminal.xcodeproj -scheme iOSTerminal -destination generic/platform='iOS Simulator' EXCLUDED_ARCHS="arm64" | |
- name: Swift Package Build | |
run: swift build -v | |
- name: Run tests | |
run: swift test -v | |
- name: Coverage | |
run: | | |
swift test --enable-code-coverage | |
BINDIR=`swift build --show-bin-path` | |
TESTDIR=`find $BINDIR -name '*.xctest'` | |
xcrun llvm-cov report $TESTDIR/Contents/MacOS/SwiftTermPackageTests --instr-profile=.build/debug/codecov/default.profdata -use-color |