chore: downgrade Swift version from 6.1 to 5.9 across entire project #4
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: Release | |
| on: | |
| push: | |
| tags: | |
| - '[0-9]+.[0-9]+.[0-9]+' | |
| jobs: | |
| build-macos: | |
| name: Build macOS Release | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_15.2.app | |
| - name: Build Release | |
| run: swift build -c release --product speedrun-cli | |
| - name: Create macOS binary | |
| run: | | |
| cp .build/release/speedrun-cli ./speedrun-cli-macos | |
| chmod +x ./speedrun-cli-macos | |
| tar -czf speedrun-cli-macos.tar.gz speedrun-cli-macos | |
| - name: Upload macOS artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: speedrun-cli-macos | |
| path: speedrun-cli-macos.tar.gz | |
| build-linux: | |
| name: Build Linux Release | |
| runs-on: ubuntu-latest | |
| container: | |
| image: swift:5.9-jammy | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y curl libcurl4-openssl-dev | |
| - name: Build Release | |
| run: swift build -c release --product speedrun-cli | |
| - name: Create Linux binary | |
| run: | | |
| cp .build/release/speedrun-cli ./speedrun-cli-linux | |
| chmod +x ./speedrun-cli-linux | |
| tar -czf speedrun-cli-linux.tar.gz speedrun-cli-linux | |
| - name: Upload Linux artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: speedrun-cli-linux | |
| path: speedrun-cli-linux.tar.gz | |
| create-release: | |
| name: Create GitHub Release | |
| needs: [build-macos, build-linux] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| name: ${{ github.ref_name }} | |
| files: | | |
| speedrun-cli-macos/speedrun-cli-macos.tar.gz | |
| speedrun-cli-linux/speedrun-cli-linux.tar.gz | |
| generate_release_notes: true | |
| draft: false | |
| prerelease: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |