Skip to content

Commit 237ce4a

Browse files
committed
Add a scheduled github workflow to check swiftly preparedness for the next swift toolchain release
1 parent df0e91c commit 237ce4a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
schedule:
3+
- cron: '30 3 * * *'
4+
# TODO REMOVE THESE
5+
pull_request:
6+
types: [opened, reopened, synchronize]
7+
8+
env:
9+
SWIFTLY_BOOTSTRAP_VERSION: 1.0.0
10+
11+
jobs:
12+
tests-selfhosted:
13+
name: Test (Self Hosted) / ${{ matrix.container }}
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
container: ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04", "redhat/ubi9", "debian:12", "fedora:39"]
19+
container:
20+
image: ${{ matrix.container }}
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
- name: Prepare the action
25+
run: ./scripts/prep-gh-action.sh --install-swiftly
26+
- name: Install main-snapshot toolchain
27+
run: swiftly install main-snapshot
28+
- name: Build and Test
29+
# UBI 9 and Ubuntu 20.04 - See https://github.com/swiftlang/swift/issues/80908
30+
# UBI 9 - See https://github.com/swiftlang/swift/issues/80909
31+
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'

0 commit comments

Comments
 (0)