gb-emu/.github/workflows/build-vst.yml

50 lines
1.4 KiB
YAML
Raw Normal View History

2023-04-06 13:13:59 +10:00
name: Build VST
on:
push:
branches: [ "main" ]
2023-04-06 16:02:56 +10:00
paths: ["gb-vst/**", "lib/**", "vendored/**", "Cargo.toml"]
2023-04-06 13:13:59 +10:00
env:
CARGO_TERM_COLOR: always
jobs:
2023-04-06 14:32:40 +10:00
build:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
2023-04-06 13:13:59 +10:00
steps:
- uses: actions/checkout@v3
2023-04-06 14:58:28 +10:00
- run: git submodule update --init --recursive
- run: mkdir test-roms
- uses: suisei-cn/actions-download-file@v1.3.0
with:
2023-04-06 15:11:19 +10:00
url: 'https://github.com/trash80/mGB/raw/master/Releases/mGB1_3_1.gb'
2023-04-06 14:58:28 +10:00
target: test-roms/
2023-04-06 14:32:40 +10:00
- uses: actions-rs/toolchain@v1
2023-04-06 16:02:56 +10:00
with:
toolchain: nightly
override: true
2023-04-06 16:09:30 +10:00
- run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
2023-04-06 16:02:56 +10:00
if: ${{ matrix.os == 'macos' }}
2023-04-06 14:04:41 +10:00
- uses: awalsh128/cache-apt-pkgs-action@latest
2023-04-06 14:44:09 +10:00
if: ${{ matrix.os == 'ubuntu' }}
2023-04-06 14:04:41 +10:00
with:
2023-04-06 15:46:49 +10:00
packages: libasound2-dev libudev-dev xorg-dev libjack-jackd2-dev libx11-xcb-dev libxcb-icccm4-dev libxcb-dri2-0-dev
2023-04-06 14:04:41 +10:00
version: 1.0
2023-04-06 14:32:40 +10:00
- uses: actions-rs/cargo@v1
2023-04-06 14:44:09 +10:00
if: ${{ matrix.os != 'macos' }}
2023-04-06 14:32:40 +10:00
with:
command: xtask
args: bundle vst --release
- uses: actions-rs/cargo@v1
2023-04-06 14:44:09 +10:00
if: ${{ matrix.os == 'macos' }}
2023-04-06 14:32:40 +10:00
with:
command: xtask
args: bundle-universal vst --release
- uses: actions/upload-artifact@v3
with:
name: gb-vst-${{ matrix.os }}.vst3
path: target/bundled/vst.vst3