Maybe? #491
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ master, feature/all_targets_ci ] | |
pull_request: | |
branches: [ master, feature/*, fix/* ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
install_deps: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
rustflags: "" | |
cache-directories: "/home/runner/.cargo/bin | |
C:\\Users\\runneradmin\\.cargo\\bin" | |
- name: install cargo make | |
run: cargo install --no-default-features --locked --version 0.37.23 cargo-make | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
needs: install_deps | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
rustflags: "" | |
cache-directories: "/home/runner/.cargo/bin | |
C:\\Users\\runneradmin\\.cargo\\bin" | |
- name: Run tests | |
run: cargo make test | |
build-rpi: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
needs: install_deps | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
rustflags: "" | |
cache-directories: "/home/runner/.cargo/bin | |
C:\\Users\\runneradmin\\.cargo\\bin" | |
- name: Build | |
# for some reason the sdl installation causing this to fail (some error about not finding glibc) so this should before the sdl | |
if: ${{ matrix.os == 'ubuntu-latest' }} # This fails on windows since it does not have docker installed | |
run: cargo make rpios | |
- name: Build rpi baremetal | |
run: cargo make -e RPI=4 rpibm | |
build-sdl: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
needs: install_deps | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
rustflags: "" | |
cache-directories: "/home/runner/.cargo/bin | |
C:\\Users\\runneradmin\\.cargo\\bin" | |
- name: Build | |
run: cargo make sdl | |
- name: Build with debugger | |
run: cargo make sdl_dbg | |
build-libretro: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
needs: install_deps | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
rustflags: "" | |
cache-directories: "/home/runner/.cargo/bin | |
C:\\Users\\runneradmin\\.cargo\\bin" | |
- name: Build libretro | |
run: cargo make libretro_desktop |