Skip to content

Add macOS job to pull request workflow #27

Add macOS job to pull request workflow

Add macOS job to pull request workflow #27

name: Smoke Test - Nightly Swift Toolchain
on:
schedule:
- cron: '30 3 * * *'
env:
SWIFTLY_BOOTSTRAP_VERSION: 1.0.0
jobs:
tests-selfhosted:
name: Test (Smoke Test - Nightly Swift Toolchain) / ${{ matrix.container }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container: ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04", "redhat/ubi9", "debian:12", "fedora:39"]
container:
image: ${{ matrix.container }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Prepare the action
run: ./scripts/prep-gh-action.sh --install-swiftly --swift-main-snapshot
- name: Build and Test
# UBI 9 and Ubuntu 20.04 - See https://github.com/swiftlang/swift/issues/80908
# UBI 9 - See https://github.com/swiftlang/swift/issues/80909
run: bash -c 'if [[ "${{ matrix.container }}" == "redhat/ubi9" ]]; then swiftly run +main-snapshot swift build --build-tests; elif [[ "${{ matrix.container }}" == "ubuntu:20.04" ]]; then swiftly run +main-snapshot swift build --build-tests; else swiftly run +main-snapshot swift test; fi'
tests-selfhosted:

Check failure on line 30 in .github/workflows/nightly_snapshot_check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/nightly_snapshot_check.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
name: Test (Smoke Test - Nightly Swift Toolchain) / macOS Sequoia ARM64
runs-on: [self-hosted, macos, sequoia, ARM64]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Prepare the action
run: ./scripts/prep-gh-action.sh --install-swiftly --swift-main-snapshot
- name: Build and Test
run: swift test