Smoke test swiftly on nightly snapshot toolchains #1
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
on: | |
schedule: | |
- cron: '30 3 * * *' | |
# TODO REMOVE THESE | |
pull_request: | |
types: [opened, reopened, synchronize] | |
env: | |
SWIFTLY_BOOTSTRAP_VERSION: 1.0.0 | |
jobs: | |
tests-selfhosted: | |
name: Test (Self Hosted) / ${{ 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 | |
- name: Install main-snapshot toolchain | |
run: swiftly install 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' |