Skip to content

Commit 0d4806a

Browse files
authored
Swift snapshot build (#718)
Adds a very simple cron build with the latest Swift snapshot.
1 parent 00a164e commit 0d4806a

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Swift Snapshot Build
2+
3+
permissions:
4+
contents: read
5+
6+
env:
7+
SWIFT_SNAPSHOT: main-snapshot
8+
9+
on:
10+
workflow_dispatch:
11+
schedule:
12+
- cron: '0 0 * * *'
13+
14+
jobs:
15+
build-snapshot:
16+
name: Build
17+
runs-on: macos-latest
18+
timeout-minutes: 30
19+
defaults:
20+
run:
21+
shell: bash
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- uses: maxim-lobanov/setup-xcode@v1
26+
with:
27+
xcode-version: latest
28+
29+
- name: Install swiftly
30+
run: brew install swiftly && swiftly init --quiet-shell-followup --skip-install -y
31+
32+
- name: Get Swift snapshot
33+
run: swiftly install -y ${{ env.SWIFT_SNAPSHOT }}
34+
35+
- name: Build
36+
run: swiftly run swift build +${{ env.SWIFT_SNAPSHOT }}

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.7
1+
6.1

0 commit comments

Comments
 (0)