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: on:
push: push:
branches: [ "main" ] branches: [ "main" ]
paths: ["gb-emu/**", "lib/**", "vendored/**", "Cargo.toml", ".github/workflows/build-emu.yml"] paths: ["gb-emu/**", "lib/**", "vendored/**", "Cargo.toml"]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@ -15,7 +15,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu, macos, windows] os: [macos, windows]
steps: steps:
- name: checkout - name: checkout
@ -31,12 +31,12 @@ jobs:
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
with: with:
shared-key: emulator-${{ matrix.os }} shared-key: emulator-${{ matrix.os }}
- name: install cached apt packages # - name: install cached apt packages
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
- name: build - name: build
run: cargo build --release run: cargo build --release
if: ${{ matrix.os != 'macos' }} if: ${{ matrix.os != 'macos' }}

View file

@ -3,7 +3,7 @@ name: Build VST
on: on:
push: push:
branches: [ "main" ] branches: [ "main" ]
paths: ["gb-vst/**", "lib/**", "vendored/**", "Cargo.toml", ".github/workflows/build-vst.yml"] paths: ["gb-vst/**", "lib/**", "vendored/**", "Cargo.toml"]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@ -14,7 +14,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu, macos, windows] os: [macos, windows]
steps: steps:
- name: checkout - name: checkout
@ -36,12 +36,12 @@ jobs:
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
with: with:
shared-key: vst-${{ matrix.os }} shared-key: vst-${{ matrix.os }}
- name: install cached apt packages # - name: install cached apt packages
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
- name: build vst - name: build vst
run: cargo xtask bundle vst --release run: cargo xtask bundle vst --release
if: ${{ matrix.os != 'macos' }} if: ${{ matrix.os != 'macos' }}