name: Build Emulator on: push: branches: [ "main" ] # paths: ["gb-emu/**", "lib/**", "vendored/**"] env: CARGO_TERM_COLOR: always jobs: build: runs-on: ${{ matrix.os }}-latest strategy: matrix: os: [ubuntu, macos, windows] steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: toolchain: nightly override: true - uses: awalsh128/cache-apt-pkgs-action@latest if: ${{ matrix.os == 'ubuntu' }} with: packages: libasound2-dev libudev-dev version: 1.0 - run: git submodule update --init --recursive - uses: actions-rs/cargo@v1 with: command: build args: --release - uses: actions/upload-artifact@v3 if: ${{ matrix.os != 'windows' }} with: name: gb-emu-${{ matrix.os }} path: target/release/gb-emu - uses: actions/upload-artifact@v3 if: ${{ matrix.os == 'windows' }} with: name: gb-emu-${{ matrix.os }} path: target/release/gb-emu.exe