gb-emu/.github/workflows/build-emu.yml
2023-04-06 14:04:41 +10:00

43 lines
896 B
YAML

name: Build Emulator
on:
push:
branches: [ "main" ]
# paths: ["gb-emu/**", "lib/**", "vendored/**"]
env:
CARGO_TERM_COLOR: always
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libasound2-dev libudev-dev
version: 1.0
- run: rustup update nightly && rustup default nightly
- run: git submodule update --init --recursive
- run: cargo build --verbose --release
build-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- run: git submodule update --init --recursive
- run: cargo build --verbose --release
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- run: git submodule update --init --recursive
- run: cargo build --verbose --release