Smoke Test - Nightly Swift Toolchain #10
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: 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' |