1
+ name : Create Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " *"
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ jobs :
12
+ build-macos :
13
+ runs-on : macos-15
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - run : ./Utilities/build-release.py -o wasmkit-x86_64-apple-macos.tar.gz -- --triple x86_64-apple-macos
17
+ - run : ./Utilities/build-release.py -o wasmkit-arm64-apple-macos.tar.gz -- --triple arm64-apple-macos
18
+ - uses : actions/upload-artifact@v4
19
+ with :
20
+ name : release-wasmkit-x86_64-apple-macos
21
+ path : wasmkit-x86_64-apple-macos.tar.gz
22
+ - uses : actions/upload-artifact@v4
23
+ with :
24
+ name : release-wasmkit-arm64-apple-macos
25
+ path : wasmkit-arm64-apple-macos.tar.gz
26
+
27
+ build-musl :
28
+ runs-on : ubuntu-24.04
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+ - name : Configure container
32
+ run : |
33
+ docker run -dit --name build-container -v $PWD:/workspace -w /workspace swift:6.0.1-jammy
34
+ echo 'docker exec -i build-container "$@"' > ./build-exec
35
+ chmod +x ./build-exec
36
+ - name : Install Static Linux SDK
37
+ run : ./build-exec swift sdk install "https://download.swift.org/swift-6.0.1-release/static-sdk/swift-6.0.1-RELEASE/swift-6.0.1-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz" --checksum "d4f46ba40e11e697387468e18987ee622908bc350310d8af54eb5e17c2ff5481"
38
+
39
+ - run : ./build-exec ./Utilities/build-release.py -o wasmkit-x86_64-swift-linux-musl.tar.gz -- --swift-sdk x86_64-swift-linux-musl
40
+ - run : ./build-exec ./Utilities/build-release.py -o wasmkit-aarch64-swift-linux-musl.tar.gz -- --swift-sdk aarch64-swift-linux-musl
41
+ - uses : actions/upload-artifact@v4
42
+ with :
43
+ name : release-wasmkit-x86_64-swift-linux-musl
44
+ path : wasmkit-x86_64-swift-linux-musl.tar.gz
45
+ - uses : actions/upload-artifact@v4
46
+ with :
47
+ name : release-wasmkit-aarch64-swift-linux-musl
48
+ path : wasmkit-aarch64-swift-linux-musl.tar.gz
49
+
50
+ create-release :
51
+ needs :
52
+ - build-macos
53
+ - build-musl
54
+ runs-on : ubuntu-24.04
55
+ steps :
56
+ - uses : actions/checkout@v4
57
+ - uses : actions/download-artifact@v4
58
+ with :
59
+ name : release-wasmkit-*
60
+ path : ./release/
61
+ - name : Create Release
62
+ run : |
63
+ VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
64
+ echo "Creating release $VERSION"
65
+ gh release create $VERSION --title $VERSION --notes "Release $VERSION" ./release/wasmkit-*
0 commit comments