This repository was archived by the owner on Jun 11, 2026. It is now read-only.
Support weak references for object interposers #222
Workflow file for this run
This file contains hidden or 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: Jazzy | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - '.github/workflows/jazzy.yml' | |
| - '.jazzy.yaml' | |
| - '**/*.md' | |
| - '**/*.jpg' | |
| - 'Gemfile*' | |
| - 'Package*' | |
| - 'Sources/**/*.swift' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/jazzy.yml' | |
| - '.jazzy.yaml' | |
| - '**/*.md' | |
| - '**/*.jpg' | |
| - 'Gemfile*' | |
| - 'Package*' | |
| - 'Sources/**/*.swift' | |
| workflow_dispatch: | |
| jobs: | |
| Jazzy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build documentation | |
| run: | | |
| docker run --rm \ | |
| -v "$PWD:/workspace" \ | |
| -w /workspace \ | |
| norionomura/jazzy:0.13.3_swift-5.2.1 \ | |
| bash -lc "printf '%s\n' \"source 'https://rubygems.org'\" \"gem 'cocoapods', '1.9.3'\" \"gem 'jazzy', '0.13.3'\" \"gem 'sqlite3', '1.4.2'\" > /tmp/InterposeKit.Gemfile && BUNDLE_GEMFILE=/tmp/InterposeKit.Gemfile bundle config set path /tmp/interposekit-bundle && BUNDLE_GEMFILE=/tmp/InterposeKit.Gemfile bundle install && swift build && sourcekitten doc --spm-module InterposeKit > interposekit.json && BUNDLE_GEMFILE=/tmp/InterposeKit.Gemfile bundle exec jazzy --clean --sourcekitten-sourcefile interposekit.json" | |
| - name: Validate documentation coverage | |
| run: | | |
| if ruby -rjson -e "j = JSON.parse(File.read('docs/undocumented.json')); exit j['warnings'].length != 0"; then | |
| echo "Undocumented declarations:" | |
| cat docs/undocumented.json | |
| exit 1 | |
| fi | |
| - name: Push to gh-pages | |
| if: github.event_name == 'push' | |
| run: | | |
| git config --global user.email "${GITHUB_ACTOR}" | |
| git config --global user.name "${GITHUB_ACTOR}@users.noreply.github.com" | |
| git clone "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" out | |
| cd out | |
| git checkout gh-pages | |
| git rm -rf . | |
| cd .. | |
| cp -a docs/. out/. | |
| cd out | |
| echo "interposekit.com " > CNAME | |
| git add -A | |
| git commit -m "Automated deployment to GitHub Pages: ${GITHUB_SHA}" --allow-empty | |
| git push origin gh-pages | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |