less ci builds

This commit is contained in:
Alex Janka 2023-04-07 10:09:14 +10:00
parent c275f92246
commit ac7519c238
2 changed files with 16 additions and 16 deletions

View file

@ -3,7 +3,7 @@ name: Build Emulator
on:
push:
branches: [ "main" ]
paths: ["gb-emu/**", "lib/**", "vendored/**", "Cargo.toml", ".github/workflows/build-emu.yml"]
paths: ["gb-emu/**", "lib/**", "vendored/**", "Cargo.toml"]
env:
CARGO_TERM_COLOR: always
@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
os: [macos, windows]
steps:
- name: checkout
@ -31,12 +31,12 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
shared-key: emulator-${{ matrix.os }}
- name: install cached apt packages
uses: awalsh128/cache-apt-pkgs-action@latest
if: ${{ matrix.os == 'ubuntu' }}
with:
packages: libasound2-dev libudev-dev
version: 1.0
# - name: install cached apt packages
# uses: awalsh128/cache-apt-pkgs-action@latest
# if: ${{ matrix.os == 'ubuntu' }}
# with:
# packages: libasound2-dev libudev-dev
# version: 1.0
- name: build
run: cargo build --release
if: ${{ matrix.os != 'macos' }}

View file

@ -3,7 +3,7 @@ name: Build VST
on:
push:
branches: [ "main" ]
paths: ["gb-vst/**", "lib/**", "vendored/**", "Cargo.toml", ".github/workflows/build-vst.yml"]
paths: ["gb-vst/**", "lib/**", "vendored/**", "Cargo.toml"]
env:
CARGO_TERM_COLOR: always
@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
os: [macos, windows]
steps:
- name: checkout
@ -36,12 +36,12 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
shared-key: vst-${{ matrix.os }}
- name: install cached apt packages
uses: awalsh128/cache-apt-pkgs-action@latest
if: ${{ matrix.os == 'ubuntu' }}
with:
packages: libasound2-dev libudev-dev xorg-dev libjack-jackd2-dev libx11-xcb-dev libxcb-icccm4-dev libxcb-dri2-0-dev
version: 1.0
# - name: install cached apt packages
# uses: awalsh128/cache-apt-pkgs-action@latest
# if: ${{ matrix.os == 'ubuntu' }}
# with:
# packages: libasound2-dev libudev-dev xorg-dev libjack-jackd2-dev libx11-xcb-dev libxcb-icccm4-dev libxcb-dri2-0-dev
# version: 1.0
- name: build vst
run: cargo xtask bundle vst --release
if: ${{ matrix.os != 'macos' }}