-
Notifications
You must be signed in to change notification settings - Fork 361
99 lines (97 loc) · 2.92 KB
/
release.yml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: LLRT Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
strategy:
fail-fast: ${{ startsWith(github.ref, 'refs/tags/') }}
matrix:
include:
- os: windows-latest
platform: windows
arch: x86_64
release: x64
toolchain: nightly-x86_64-pc-windows-gnu
- os: ubuntu-latest
platform: linux
arch: x86_64
release: x64
- os: ubuntu-latest
platform: linux
arch: aarch64
release: arm64
- os: macos-latest
platform: darwin
arch: x86_64
release: x64
- os: macos-latest
platform: darwin
arch: aarch64
release: arm64
uses: ./.github/workflows/build.yml
with:
os: ${{ matrix.os }}
platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }}
release: ${{ matrix.release }}
toolchain: ${{ matrix.toolchain }}
release:
permissions:
contents: write
discussions: write
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Fix permissions
run: |
chmod 755 ./llrt-container-x64*
chmod 755 ./llrt-container-arm64*
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: ./CHANGELOG.md
prerelease: contains(github.ref, 'beta') || contains(github.ref, 'alpha') || contains(github.ref, 'rc')
files: |
./llrt-lambda-x64.zip
./llrt-lambda-x64-no-sdk.zip
./llrt-lambda-x64-full-sdk.zip
./llrt-lambda-arm64.zip
./llrt-lambda-arm64-no-sdk.zip
./llrt-lambda-arm64-full-sdk.zip
./llrt-container-x64
./llrt-container-x64-no-sdk
./llrt-container-x64-full-sdk
./llrt-container-arm64
./llrt-container-arm64-no-sdk
./llrt-container-arm64-full-sdk
./llrt-linux-x64.zip
./llrt-linux-x64-no-sdk.zip
./llrt-linux-x64-full-sdk.zip
./llrt-linux-arm64.zip
./llrt-linux-arm64-no-sdk.zip
./llrt-linux-arm64-full-sdk.zip
./llrt-darwin-x64.zip
./llrt-darwin-x64-no-sdk.zip
./llrt-darwin-x64-full-sdk.zip
./llrt-darwin-arm64.zip
./llrt-darwin-arm64-no-sdk.zip
./llrt-darwin-arm64-full-sdk.zip
./llrt-windows-x64.zip
./llrt-windows-x64-no-sdk.zip
./llrt-windows-x64-full-sdk.zip
# Publish is broken until we stabilize a version of rquickjs
# publish:
# needs:
# - build
# uses: ./.github/workflows/publish.yml
# with:
# ref: ${{ github.ref }}
# secrets:
# CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}