Skip to content

Commit ad7a60f

Browse files
committed
Add a github workflow for Linux based on the swiftlang template
Test on the Linux distributions that Swiftly currently supports. Also, test with the latest stable Swift toolchain. Build libarchive and install it using the shell script.
1 parent 94ec29c commit ad7a60f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Pull request
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
soundness:
9+
name: Soundness
10+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
11+
with:
12+
license_header_check_enabled: false
13+
license_header_check_project_name: "Swift.org"
14+
api_breakage_check_enabled: false
15+
docs_check_enabled: false
16+
format_check_enabled: false
17+
shell_check_enabled: false
18+
unacceptable_language_check_enabled: true
19+
20+
tests:
21+
name: Test
22+
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
23+
with:
24+
#linux_os_versions: "[\"jammy\", \"noble\", \"focal\", \"amazonlinux2\", \"rhel-ubi9\", \"bookworm\", \"fedora39\"]"
25+
# Not working: noble (compile error in TSC Filesystem), bookworm (missing memory.h), fedora39 (missing memory.h)
26+
linux_os_versions: "[\"jammy\", \"focal\", \"amazonlinux2\", \"rhel-ubi9\"]"
27+
# We only care about the current stable release, because that's where we make our swiftly releases
28+
linux_exclude_swift_versions: "[{\"swift_version\": \"nightly-main\"},{\"swift_version\": \"nightly-6.0\"},{\"swift_version\": \"5.8\"},{\"swift_version\": \"5.9\"},{\"swift_version\": \"5.10\"}]"
29+
linux_pre_build_command: ((apt-get update && apt-get -y install curl make) || ((curl --help || yum -y install curl) && yum -y install make)) && ./scripts/install-libarchive.sh
30+
enable_windows_checks: false

0 commit comments

Comments
 (0)