Merge pull request #24 from dabrahams/dont-hide-ci-failures #20
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: XCFramework | |
defaults: | |
run: | |
shell: bash -eo pipefail {0} | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
paths-ignore: | |
- '.github/**' # Ignore all files under '.github' | |
- '!.github/workflows/xcframework.yml' # Except for this workflow | |
- '.gitignore' | |
- '.remarkrc' | |
- '.swiftlint.yml' | |
- 'codecov.yml' | |
- 'Documentation/**' | |
- 'LICENSE' | |
- 'Package.swift' | |
- 'README.md' | |
- 'Tests/**' | |
- 'CBORCoding.podspec' | |
jobs: | |
build: | |
name: Build | |
runs-on: macOS-11 | |
env: | |
TMPDIR: /tmp/.cborcoding.xcframework.build | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Setup Environment | |
run: | | |
mkdir -p "${TMPDIR}/Output" | |
mkdir -p "${TMPDIR}/Logs" | |
- name: Build | |
run: | | |
./scripts/xcframework.sh --build-dir "${TMPDIR}" -- RUN_DOCUMENTATION_COMPILER=NO SKIP_SWIFTLINT=YES | |
- name: Upload Logs | |
uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: BuildLogs | |
path: ${{ env.TMPDIR }}/Logs/*.log |