Skip to content

Commit 7b0c5e1

Browse files
committed
Test with self-hosted swiftly
1 parent f5d1bab commit 7b0c5e1

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,26 @@ jobs:
1919
shell_check_enabled: false
2020
unacceptable_language_check_enabled: true
2121

22+
tests-selfhosted:
23+
name: Test Self Hosted
24+
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
container: ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04", "redhat/ubi9", "debian:12", "fedora:39"]
28+
container:
29+
image: ${{ matrix.container }}
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
- name: Install swiftly
34+
run: curl -O https://download.swift.org/swiftly/linux/swiftly-0.4.0-dev-$(uname -m).tar.gz && tar zxf swiftly-*.tar.gz && ./swiftly init --skip-install
35+
- name: Install selected swift toolchain
36+
run: /root/.local/share/swiftly/bin/swiftly install --post-install=post-install.sh
37+
- name: Perform swift toolchain post-installation
38+
run: ./post-install.sh
39+
- name: Build and Test
40+
run: ./scripts/prep-gh-action.sh && ./scripts/install-libarchive.sh && /root/local/.share/swiftly/bin/swift test
41+
2242
tests:
2343
name: Test
2444
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0
1+
6.0.3

0 commit comments

Comments
 (0)