-
-
Notifications
You must be signed in to change notification settings - Fork 101
66 lines (55 loc) · 1.88 KB
/
Copy pathrelease.yml
File metadata and controls
66 lines (55 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: skip release builds
on:
push:
#branches: [ main ]
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
skip-release:
runs-on: macos-15
steps:
- name: Checkout skipstone
uses: actions/checkout@v6
with:
repository: skiptools/skipstone
path: skipstone
ref: main
submodules: true
- name: Checkout skip
uses: actions/checkout@v6
with:
repository: skiptools/skip
path: skip
# need to fetch tags so we know the most recent version
fetch-tags: true
# needed or else trigger from tag will fail
# https://github.com/actions/checkout/issues/1467
ref: ${{ github.ref }}
- name: Checkout homebrew-skip
uses: actions/checkout@v6
with:
repository: skiptools/homebrew-skip
path: homebrew-skip
- name: Install Dependencies
run: |
brew install tree swiftly
swiftly init --assume-yes --no-modify-profile --skip-install
- name: Setup Static Linux SDK
run: |
SWIFT_VERSION=6.2.3
swiftly install --use ${SWIFT_VERSION}
curl -fsSL -o swift-static-linux-sdk.tar.gz https://download.swift.org/swift-${SWIFT_VERSION}-release/static-sdk/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz
swift sdk install swift-static-linux-sdk.tar.gz
swift sdk list
# this version will be used by the release script for
# building the static Linux version
echo "SWIFT_VERSION=${SWIFT_VERSION}" >> $GITHUB_ENV
- name: Build Skip Release
working-directory: skipstone
run: ./scripts/release_skip.sh
env:
DRY_RUN: 1