1- name : Pull request
1+ name : Pull Request
22
33on :
44 pull_request :
55 types : [opened, reopened, synchronize]
6+ push :
7+ branches : [main]
68
79jobs :
810 soundness :
@@ -21,24 +23,29 @@ jobs:
2123 name : Test
2224 uses : swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
2325 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\" , \" rhel-ubi9\" ]"
26+ # Amazon Linux 2 won't work with GH infrastructure
27+ linux_os_versions : " [\" jammy\" , \" focal\" , \" rhel-ubi9\" , \" noble\" , \" bookworm\" , \" fedora39\" ]"
2728 # We only care about the current stable release, because that's where we make our swiftly releases
2829 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+ linux_pre_build_command : ./scripts/prep-gh-action.sh && ./scripts/install-libarchive.sh
3031 enable_windows_checks : false
3132
32- releasebuild :
33- name : Release Build
34- uses : swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
35- with :
36- linux_os_versions : " [\" rhel-ubi9\" ]"
37- # We only care about the current stable release, because that's where we make our swiftly releases
38- 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\" }]"
39- linux_pre_build_command : echo ""
40- linux_build_command : swift run build-swiftly-release --skip 0.4.0
41- enable_windows_checks : false
33+ releasebuildcheck :
34+ name : Release Build Check
35+ runs-on : ubuntu-latest
36+ container :
37+ image : " swift:6.0-rhel-ubi9"
38+ steps :
39+ - name : Checkout repository
40+ uses : actions/checkout@v4
41+ - name : Build Artifact
42+ run : swift run build-swiftly-release --skip "999.0.0"
43+ - name : Upload Artifact
44+ uses : actions/upload-artifact@v4
45+ with :
46+ path : .build/release/swiftly-*.tar.gz
47+ if-no-files-found : error
48+ retention-days : 1
4249
4350 formatcheck :
4451 name : Format Check
4754 # We only need to run this with one swift release and on one of the linux distributions
4855 linux_os_versions : " [\" jammy\" ]"
4956 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\" }]"
50- linux_pre_build_command : echo ""
57+ linux_pre_build_command : ./scripts/prep-gh-action.sh
5158 linux_build_command : swift run swiftformat --lint --dryrun .
5259 enable_windows_checks : false
0 commit comments