Build and Test #7
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: Build and Test | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 9 * * 5" | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
if: github.ref != 'refs/heads/main' | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- swift:5.8-jammy | |
- swift:5.10.1-noble | |
container: ${{ matrix.image }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Build Swift Debug Package | |
run: swift build -c debug | |
- name: Build Swift Release Package | |
run: swift build -c release | |
nextstep: | |
runs-on: macos-latest | |
if: github.ref != 'refs/heads/main' | |
steps: | |
- name: Select latest available Xcode | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: latest | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Build Swift Debug Package | |
run: swift build -c debug | |
- name: Build Swift Release Package | |
run: swift build -c release |