maybe works?
This commit is contained in:
parent
748b56d842
commit
638cc3706d
57
.github/workflows/build-emu.yml
vendored
57
.github/workflows/build-emu.yml
vendored
|
@ -3,14 +3,17 @@ name: Build Emulator
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
# paths: ["gb-emu/**", "lib/**", "vendored/**"]
|
paths: ["gb-emu/**", "lib/**", "vendored/**"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu, macos, windows]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -18,7 +21,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
override: true
|
override: true
|
||||||
target: aarch64-unknown-linux-gnu, x86_64-unknown-linux-gnu
|
|
||||||
- uses: awalsh128/cache-apt-pkgs-action@latest
|
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
with:
|
with:
|
||||||
packages: libasound2-dev libudev-dev
|
packages: libasound2-dev libudev-dev
|
||||||
|
@ -26,44 +28,15 @@ jobs:
|
||||||
- run: git submodule update --init --recursive
|
- run: git submodule update --init --recursive
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
use-cross: true
|
|
||||||
command: build
|
command: build
|
||||||
args: --release --target aarch64-unknown-linux-gnu
|
args: --release
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions/upload-artifact@v3
|
||||||
|
if: ${{ matrix.os }} != windows
|
||||||
with:
|
with:
|
||||||
use-cross: true
|
name: gb-emu-${{ matrix.os }}
|
||||||
command: build
|
path: target/release/gb-emu
|
||||||
args: --release --target x86_64-unknown-linux-gnu
|
- uses: actions/upload-artifact@v3
|
||||||
|
if: ${{ matrix.os }} == windows
|
||||||
|
|
||||||
build-mac:
|
|
||||||
runs-on: macos-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
name: gb-emu-${{ matrix.os }}
|
||||||
override: true
|
path: target/release/gb-emu.exe
|
||||||
- run: git submodule update --init --recursive
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
use-cross: true
|
|
||||||
command: build
|
|
||||||
|
|
||||||
|
|
||||||
build-windows:
|
|
||||||
runs-on: windows-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: nightly
|
|
||||||
override: true
|
|
||||||
- run: git submodule update --init --recursive
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
use-cross: true
|
|
||||||
command: build
|
|
||||||
|
|
43
.github/workflows/build-vst.yml
vendored
43
.github/workflows/build-vst.yml
vendored
|
@ -9,32 +9,35 @@ env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu, macos, windows]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: nightly
|
||||||
|
override: true
|
||||||
- uses: awalsh128/cache-apt-pkgs-action@latest
|
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
with:
|
with:
|
||||||
packages: libasound2-dev libudev-dev xorg-dev libjack-jackd2-dev
|
packages: libasound2-dev libudev-dev xorg-dev libjack-jackd2-dev
|
||||||
version: 1.0
|
version: 1.0
|
||||||
- run: rustup update nightly && rustup default nightly
|
- run: rustup update nightly && rustup default nightly
|
||||||
- run: git submodule update --init --recursive
|
- run: git submodule update --init --recursive
|
||||||
- run: cargo xtask bundle-universal vst --verbose --release
|
- uses: actions-rs/cargo@v1
|
||||||
|
if: ${{ matrix.os }} != macos
|
||||||
build-mac:
|
with:
|
||||||
runs-on: macos-latest
|
command: xtask
|
||||||
|
args: bundle vst --release
|
||||||
steps:
|
- uses: actions-rs/cargo@v1
|
||||||
- uses: actions/checkout@v3
|
if: ${{ matrix.os }} == macos
|
||||||
- run: git submodule update --init --recursive
|
with:
|
||||||
- run: cargo xtask bundle-universal vst --verbose --release
|
command: xtask
|
||||||
|
args: bundle-universal vst --release
|
||||||
build-windows:
|
- uses: actions/upload-artifact@v3
|
||||||
runs-on: windows-latest
|
with:
|
||||||
|
name: gb-vst-${{ matrix.os }}.vst3
|
||||||
steps:
|
path: target/bundled/vst.vst3
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: git submodule update --init --recursive
|
|
||||||
- run: cargo xtask bundle vst --verbose --release
|
|
||||||
|
|
Loading…
Reference in a new issue