name: Build Emulator on: push: branches: [ "main" ] # paths: ["gb-emu/**", "lib/**", "vendored/**"] env: CARGO_TERM_COLOR: always jobs: build-linux: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: toolchain: nightly override: true target: aarch64-unknown-linux-gnu, x86_64-unknown-linux-gnu - uses: awalsh128/cache-apt-pkgs-action@latest with: packages: libasound2-dev libudev-dev version: 1.0 - run: git submodule update --init --recursive - uses: actions-rs/cargo@v1 with: use-cross: true command: build args: --release --target aarch64-unknown-linux-gnu - uses: actions-rs/cargo@v1 with: use-cross: true command: build args: --release --target x86_64-unknown-linux-gnu build-mac: runs-on: macos-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 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