Skip to content

Commit e84a611

Browse files
committed
Action
1 parent 00a164e commit e84a611

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/swift-snapshot.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Swift Snapshot Build
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- '.github/workflows/swift-snapshot.yaml'
10+
11+
jobs:
12+
build-snapshot:
13+
name: Build
14+
runs-on: macos-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install swiftly
19+
run: |
20+
curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg && \
21+
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory && \
22+
~/.swiftly/bin/swiftly init --quiet-shell-followup && \
23+
. "${SWIFTLY_HOME_DIR:-~/.swiftly}/env.sh" && \
24+
hash -r
25+
shell: bash
26+
27+
- name: Use Swift Snapshot
28+
run: swiftly install main-snapshot && swiftly use main-snapshot
29+
shell: bash
30+
31+
- name: Build
32+
run: swift build

.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)