Added strict concurrency checking and Sendable conformances #12
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: Documentation | |
defaults: | |
run: | |
shell: bash -eo pipefail {0} | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
paths: | |
- '.github/workflows/documentation.yml' | |
- '**.swift' # DocC only considers Swift files | |
- 'Documentation/CBORCoding.docc/**' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macOS-13] | |
xcode: ['15.0'] | |
name: Build Documentation | |
runs-on: ${{ matrix.os }} | |
env: | |
LOGSDIR: /tmp/.cborcoding.documentation/Logs | |
steps: | |
- name: Select Xcode Version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: ${{ matrix.xcode }} | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Environment | |
run: | | |
mkdir -p "$LOGSDIR" | |
- name: Build Documentation | |
run: | | |
xcodebuild docbuild -workspace "CBORCoding.xcworkspace" -scheme "CBORCoding" -destination "generic/platform=iOS" SKIP_SWIFTLINT=YES 2>&1 | tee "$LOGSDIR/build.log" | |
- name: Upload Logs | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: Logs | |
path: ${{ env.LOGSDIR }}/*.log |