build #610
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: build | |
on: | |
push: | |
pull_request: | |
jobs: | |
macos: | |
strategy: | |
fail-fast: false | |
matrix: | |
macos: | |
- 12 | |
- 14 | |
xcode: | |
- latest-stable | |
runs-on: macos-${{ matrix.macos }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build and Test | |
run: | | |
xcodebuild -scheme "Euclid" -sdk macosx clean build test -enableCodeCoverage YES -derivedDataPath Build/ | |
cd Build/Build/ProfileData | |
cd $(ls -d */|head -n 1) | |
directory=${PWD##*/} | |
pathCoverage=Build/Build/ProfileData/${directory}/Coverage.profdata | |
cd ../../../../ | |
xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage Build/Build/Products/Debug/Euclid.framework/Euclid > info.lcov | |
- name: Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
# the token is optional for a public repo, but including it anyway | |
token: 2abe208f-c7d5-4c0d-aaf7-fa6994f1a78e | |
env_vars: MD_APPLE_SDK_ROOT,RUNNER_OS,RUNNER_ARCH | |
linux: | |
strategy: | |
fail-fast: false | |
matrix: | |
swiftver: | |
- swift:5.2 | |
- swiftlang/swift:nightly-main | |
swiftos: | |
- focal | |
runs-on: ubuntu-latest | |
container: | |
image: ${{ format('{0}-{1}', matrix.swiftver, matrix.swiftos) }} | |
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --security-opt apparmor=unconfined | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Build and Test | |
run: swift test --enable-test-discovery | |
swiftwasm_test_5_6: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: swiftwasm/[email protected] | |
with: | |
shell-action: carton test |