-
-
Notifications
You must be signed in to change notification settings - Fork 15
63 lines (51 loc) · 1.89 KB
/
gui.yaml
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
name: ANISE GUI
on:
push:
branches:
- master
tags:
- '*'
pull_request:
workflow_dispatch:
env:
RUST_BACKTRACE: 1
RUST_LOG: info
# Source: https://github.com/emilk/egui/blob/23732be0e5b9a977afb08a2e7cb23c31955abe43/.github/workflows/rust.yml
jobs:
build-linux:
name: Build Linux GUI
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install packages (Linux)
if: runner.os == 'Linux'
uses: rerun-io/cache-apt-pkgs-action@59534850182063abf1b2c11bb3686722a12a8397
with:
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd
version: 1.0
execute_install_scripts: true
- name: Build Linux executable
run: cargo build --release --bin anise-gui --workspace --exclude anise-py
- name: Save executable
uses: actions/upload-artifact@v3
with:
name: anise-gui-linux
path: target/release/anise-gui
if-no-files-found: error
windows:
name: Build Windows GUI
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
- name: Build Windows executable
run: cargo build --release --bin anise-gui --workspace --exclude anise-py
- name: Save executable
uses: actions/upload-artifact@v3
with:
name: anise-gui-windows
path: target\release\anise-gui.exe
if-no-files-found: error