-
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.22 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
name: Release
on:
push:
branches:
- master
- main
paths:
- "src/**"
- "Cargo.*"
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Add rustup target
run: rustup target add x86_64-pc-windows-gnu
- uses: Swatinem/rust-cache@v1
- name: Install system dependencies
run: sudo apt install pkg-config libx11-dev libxi-dev libgl1-mesa-dev libasound2-dev mingw-w64
- run: cargo check
- name: Build linux binary
run: cargo build --release
- name: Build windows binary
run: cargo build --target x86_64-pc-windows-gnu --release
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx -p @semantic-release/gitlab -p @semantic-release/git -p semantic-release semantic-release