forked from veryl-lang/veryl
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (67 loc) · 1.66 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
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Setup MUSL
if: matrix.os == 'ubuntu-latest'
run: |
rustup target add x86_64-unknown-linux-musl
sudo apt-get -qq install musl-tools
- name: Setup aarch64 mac
if: matrix.os == 'macOS-latest'
run: |
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
- name: Build for linux
if: matrix.os == 'ubuntu-latest'
run: |
make release_lnx
- name: Build for macOS
if: matrix.os == 'macOS-latest'
run: make release_mac
- name: Build for Windows
if: matrix.os == 'windows-latest'
run: make release_win
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: "*.zip\n*.rpm"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
vsce:
needs: build
runs-on: ubuntu-latest
defaults:
run:
working-directory: support/vscode
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm install
- run: make publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}