Add GitHub Actions workflow for release creation #2
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 CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build_and_test: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Swift 6.1 | |
| uses: fwal/setup-swift@v2 | |
| with: | |
| swift-version: "6.1" | |
| - name: Resolve dependencies | |
| run: swift package resolve | |
| - name: Build package | |
| run: swift build --configuration release |