-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (60 loc) · 1.71 KB
/
tagged-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
name: tagged-release
on:
push:
tags:
- 'v*'
defaults:
run:
working-directory: server/
jobs:
create-release:
name: create-release
runs-on: ubuntu-22.04
outputs:
upload_url: ${{ steps.release.outputs.upload_url }}
steps:
- name: Create GitHub release
id: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
build-release:
name: build-release
needs: ['create-release']
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [linux, windows, macos]
include:
- name: linux
os: ubuntu-latest
asset_path: server/target/release/circom-lsp
asset_name: circom-lsp-linux
- name: windows
os: windows-latest
asset_path: server/target/release/circom-lsp.exe
asset_name: circom-lsp-windows
- name: macos
os: macos-latest
asset_path: server/target/release/circom-lsp
asset_name: circom-lsp-macos
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Build
run: cargo build --release --locked
- name: Upload release archive
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: ${{ matrix.asset_path }}
asset_name: ${{ matrix.asset_name }}
asset_content_type: application/octet-stream