Merge pull request #364 from nyx-space/fix/gh-357-epa #472
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |