workflow updates
This commit is contained in:
parent
e04820a80a
commit
2c0253ff50
25
.github/workflows/build-emu.yml
vendored
25
.github/workflows/build-emu.yml
vendored
|
@ -18,32 +18,25 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: git submodule update --init --recursive
|
- run: git submodule update --init --recursive
|
||||||
- uses: actions-rs/toolchain@v1
|
- run: |
|
||||||
with:
|
rustup toolchain install nightly --profile minimal --no-self-update
|
||||||
toolchain: nightly
|
rustup default nightly
|
||||||
override: true
|
|
||||||
- run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
|
- run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
|
||||||
if: ${{ matrix.os == 'macos' }}
|
if: ${{ matrix.os == 'macos' }}
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: emulator-${{ matrix.os }}
|
||||||
- uses: awalsh128/cache-apt-pkgs-action@latest
|
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
if: ${{ matrix.os == 'ubuntu' }}
|
if: ${{ matrix.os == 'ubuntu' }}
|
||||||
with:
|
with:
|
||||||
packages: libasound2-dev libudev-dev
|
packages: libasound2-dev libudev-dev
|
||||||
version: 1.0
|
version: 1.0
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo build --release
|
||||||
if: ${{ matrix.os != 'macos' }}
|
if: ${{ matrix.os != 'macos' }}
|
||||||
with:
|
- run: cargo build --release --target x86_64-apple-darwin
|
||||||
command: build
|
|
||||||
args: --release
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
if: ${{ matrix.os == 'macos' }}
|
if: ${{ matrix.os == 'macos' }}
|
||||||
with:
|
- run: cargo build --release --target aarch64-apple-darwin
|
||||||
command: build
|
|
||||||
args: --release --target x86_64-apple-darwin
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
if: ${{ matrix.os == 'macos' }}
|
if: ${{ matrix.os == 'macos' }}
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --release --target aarch64-apple-darwin
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
if: ${{ matrix.os == 'ubuntu' }}
|
if: ${{ matrix.os == 'ubuntu' }}
|
||||||
with:
|
with:
|
||||||
|
|
20
.github/workflows/build-vst.yml
vendored
20
.github/workflows/build-vst.yml
vendored
|
@ -23,27 +23,23 @@ jobs:
|
||||||
with:
|
with:
|
||||||
url: 'https://github.com/trash80/mGB/raw/master/mGB.gb'
|
url: 'https://github.com/trash80/mGB/raw/master/mGB.gb'
|
||||||
target: test-roms/
|
target: test-roms/
|
||||||
- uses: actions-rs/toolchain@v1
|
- run: |
|
||||||
with:
|
rustup toolchain install nightly --profile minimal --no-self-update
|
||||||
toolchain: nightly
|
rustup default nightly
|
||||||
override: true
|
|
||||||
- run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
|
- run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
|
||||||
if: ${{ matrix.os == 'macos' }}
|
if: ${{ matrix.os == 'macos' }}
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: vst-${{ matrix.os }}
|
||||||
- uses: awalsh128/cache-apt-pkgs-action@latest
|
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
if: ${{ matrix.os == 'ubuntu' }}
|
if: ${{ matrix.os == 'ubuntu' }}
|
||||||
with:
|
with:
|
||||||
packages: libasound2-dev libudev-dev xorg-dev libjack-jackd2-dev libx11-xcb-dev libxcb-icccm4-dev libxcb-dri2-0-dev
|
packages: libasound2-dev libudev-dev xorg-dev libjack-jackd2-dev libx11-xcb-dev libxcb-icccm4-dev libxcb-dri2-0-dev
|
||||||
version: 1.0
|
version: 1.0
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo xtask bundle vst --release
|
||||||
if: ${{ matrix.os != 'macos' }}
|
if: ${{ matrix.os != 'macos' }}
|
||||||
with:
|
- run: cargo xtask bundle-universal vst --release
|
||||||
command: xtask
|
|
||||||
args: bundle vst --release
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
if: ${{ matrix.os == 'macos' }}
|
if: ${{ matrix.os == 'macos' }}
|
||||||
with:
|
|
||||||
command: xtask
|
|
||||||
args: bundle-universal vst --release
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: gb-vst-${{ matrix.os }}.vst3
|
name: gb-vst-${{ matrix.os }}.vst3
|
||||||
|
|
Loading…
Reference in a new issue