-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (59 loc) · 1.83 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
name: Rust Release Builds
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libfltk1.3-dev libfltk-gl1.3 xorg-dev libpango1.0-dev librust-pangocairo-dev libpangoxft-1.0 libwayland-dev libxkbcommon-dev libdbus-1-dev
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: scrappy-linux
path: target/release/scrappy
windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: scrappy-windows.exe
path: target/release/scrappy.exe
release:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' }}
needs:
- windows
- linux
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/download-artifact@v3
with:
path: .binaries/
- name: Do Release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
semantic_version: 17.1.1
dry_run: ${{ github.ref != 'refs/heads/master' }}
extra_plugins: |
@google/semantic-release-replace-plugin
@semantic-release/git
conventional-changelog-ember