2023-04-06 13:13:59 +10:00
|
|
|
name: Build Emulator
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
2023-04-06 13:20:40 +10:00
|
|
|
# paths: ["gb-emu/**", "lib/**", "vendored/**"]
|
2023-04-06 13:13:59 +10:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
2023-04-06 14:04:41 +10:00
|
|
|
build-linux:
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-06 13:13:59 +10:00
|
|
|
|
2023-04-06 14:04:41 +10:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-04-06 14:15:05 +10:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
|
|
|
target: aarch64-unknown-linux-gnu, x86_64-unknown-linux-gnu
|
2023-04-06 14:04:41 +10:00
|
|
|
- uses: awalsh128/cache-apt-pkgs-action@latest
|
|
|
|
with:
|
|
|
|
packages: libasound2-dev libudev-dev
|
|
|
|
version: 1.0
|
|
|
|
- run: git submodule update --init --recursive
|
2023-04-06 14:15:05 +10:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
use-cross: true
|
|
|
|
command: build
|
|
|
|
args: --release --target aarch64-unknown-linux-gnu
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
use-cross: true
|
|
|
|
command: build
|
|
|
|
args: --release --target x86_64-unknown-linux-gnu
|
2023-04-06 14:04:41 +10:00
|
|
|
|
|
|
|
|
|
|
|
build-mac:
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-04-06 14:15:05 +10:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
2023-04-06 14:04:41 +10:00
|
|
|
- run: git submodule update --init --recursive
|
2023-04-06 14:15:05 +10:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
use-cross: true
|
|
|
|
command: build
|
2023-04-06 14:04:41 +10:00
|
|
|
|
|
|
|
|
|
|
|
build-windows:
|
|
|
|
runs-on: windows-latest
|
2023-04-06 13:13:59 +10:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-04-06 14:15:05 +10:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
2023-04-06 14:04:41 +10:00
|
|
|
- run: git submodule update --init --recursive
|
2023-04-06 14:15:05 +10:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
use-cross: true
|
|
|
|
command: build
|
2023-04-06 14:04:41 +10:00
|
|
|
|