Skip to content

Commit 9e64edc

Browse files
committed
Add macOS nightly smoke test and release workflow
1 parent 950fe43 commit 9e64edc

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

.github/workflows/build_release.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919

2020
jobs:
2121
buildrelease:
22-
name: Build Release
22+
name: Build Release / Linux x86_64
2323
runs-on: ubuntu-latest
2424
container:
2525
image: "redhat/ubi9"
@@ -44,3 +44,20 @@ jobs:
4444
name: swiftly-docs
4545
path: .build/docs/**
4646
if-no-files-found: error
47+
48+
buildrelease:
49+
name: Build Release / macOS
50+
runs-on: [self-hosted, macos, sequoia, ARM64]
51+
steps:
52+
- name: Checkout repository
53+
uses: actions/checkout@v4
54+
- name: Prepare the action
55+
run: ./scripts/prep-gh-action.sh --install-swiftly
56+
- name: Build Release Artifact
57+
run: swift run build-swiftly-release ${{ inputs.skip }} ${{ inputs.version }}
58+
- name: Upload Release Artifact
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: swiftly-release-x86_64
62+
path: .build/release/swiftly-*.tar.gz
63+
if-no-files-found: error

.github/workflows/nightly_snapshot_check.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,14 @@ jobs:
2626
# UBI 9 and Ubuntu 20.04 - See https://github.com/swiftlang/swift/issues/80908
2727
# UBI 9 - See https://github.com/swiftlang/swift/issues/80909
2828
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'
29+
30+
tests-selfhosted:
31+
name: Test (Smoke Test - Nightly Swift Toolchain) / macOS Sequoia ARM64
32+
runs-on: [self-hosted, macos, sequoia, ARM64]
33+
steps:
34+
- name: Checkout repository
35+
uses: actions/checkout@v4
36+
- name: Prepare the action
37+
run: ./scripts/prep-gh-action.sh --install-swiftly --swift-main-snapshot
38+
- name: Build and Test
39+
run: swift test

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
uses: actions/upload-artifact@v4
104104
with:
105105
name: swiftly-tests-darwin
106-
path: .build/debug/test-swiftly-darwin-arm64.tar.gz
106+
path: .build/debug/test-swiftly-macos.tar.gz
107107
if-no-files-found: error
108108
retention-days: 1
109109

0 commit comments

Comments
 (0)