3 Commits

Author SHA1 Message Date
dranke 0f795ae061 binaries should be built with --release 2021-12-22 21:49:57 +01:00
dranke 2eca3fa8c8 install libxkbcommon-dev for linux build 2021-12-22 21:38:51 +01:00
dranke 7db0d66ad4 first attempt at ci setup to build uw8 binaries 2021-12-22 21:31:29 +01:00
+50
View File
@@ -0,0 +1,50 @@
name: Rust
on:
push:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
build: [ linux, windows, macos ]
include:
- build: linux
os: ubuntu-latest
exe: uw8
- build: windows
os: windows-latest
exe: uw8.exe
- build: macos
os: macos-latest
exe: uw8
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: sudo apt-get install -y libxkbcommon-dev
if: matrix.os == 'ubuntu-latest'
- name: Checkout
uses: actions/checkout@v2
- name: Cache build dirs
uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --release --verbose
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: uw8-${{ matrix.build }}
path: target/release/${{ matrix.exe }}