first attempt at ci setup to build uw8 binaries

This commit is contained in:
2021-12-22 21:30:51 +01:00
parent 28713bd1df
commit 7db0d66ad4

47
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,47 @@
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: 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 --verbose
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: uw8-${{ matrix.build }}
path: target/release/${{ matrix.exe }}