This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Add documentation generation workflow and update .gitignore #56
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: Swift Build & Test | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| matrix: | |
| include: | |
| - runner: macos-14 | |
| config: debug | |
| - runner: macos-14 | |
| config: release | |
| - runner: ubuntu-24.04 | |
| config: debug | |
| - runner: ubuntu-24.04 | |
| config: release | |
| fail-fast: false | |
| name: Build and Test on ${{ matrix.runner }} (${{ matrix.config }}) | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - name: Set up Swift | |
| if: matrix.runner == 'ubuntu-24.04' | |
| run: | | |
| curl -L https://swiftlygo.xyz/install.sh | sudo bash | |
| sudo swiftlygo install -y 5.10.1 | |
| - uses: actions/checkout@v4 | |
| - name: Build (${{ matrix.config }} mode) | |
| run: swift build -c ${{ matrix.config }} | |
| - name: Run tests (${{ matrix.config }} mode) | |
| run: swift test -c ${{ matrix.config }} |