-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (38 loc) · 1.04 KB
/
rust.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
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- name: Download deps
shell: bash
run: |
if [[ ${RUNNER_OS} == "Linux" ]]; then
sudo apt-get update
sudo apt-get install -y lib{pango1.0,x11,xext,xft,xinerama}-dev\
lib{xcursor,xrender,xfixes,png,gl1-mesa,rust-alsa-sys}-dev\
libglu1-mesa-dev
fi
- uses: actions/checkout@v4
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Build app
working-directory: src
shell: bash
run: |
cargo build --bin swyh-rs
cargo build --bin swyh-rs-cli --features cli --no-default-features