-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (47 loc) · 1.42 KB
/
linux.yaml
File metadata and controls
56 lines (47 loc) · 1.42 KB
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
name: Linux
run-name: Build project
on:
push:
tags:
- '*.*.*'
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-22.04
env:
ENV: prod
SLINT_BACKEND: winit-skia
SLEEK_UI_PATH: ${{ github.workspace }}/sleek-ui/ui/sleek-ui
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Check out sleek-ui repository
uses: actions/checkout@v4
with:
repository: uAtomicBoolean/sleek-ui
path: ./sleek-ui
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
- name: Select icons
run: |
cp res/linux/32x32.png res/32x32.png
cp res/linux/icon.png res/icon.png
- name: Package the project
run: |
cargo install cargo-packager --locked
cargo packager --release
- name: Rename binary
run: |
cp target/release/scriptboard target/release/scriptboard-${{ github.ref_name }}-x86_64-linux
shell: bash
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: scriptboard v${{ github.ref_name }}
body_path: changelogs/${{ github.ref_name }}-changelog.txt
files: |
target/release/scriptboard-${{ github.ref_name }}-x86_64-linux
dist/scriptboard*