mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-25 11:41:30 +11:00
5114f89448
* Simplify build process - Remove dependencies on DevkitPro - Use linker similarly to min-gba - Update cargo.toml so that dev builds will build - Update cargo config so that std builds can run without the linker for testing purposes - Update CI flow to remove xbuild dependency * Add windows toolchain install * Add windows section to toolchain install instructions
65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
name: ci
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
rust:
|
|
- { toolchain: nightly }
|
|
steps:
|
|
- name: Install Apt Dependencies
|
|
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential libssl-dev binutils-arm-none-eabi
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: ${{ matrix.rust.toolchain }}
|
|
default: true
|
|
- name: Install Rust Source
|
|
run: rustup component add rust-src
|
|
- name: Install cargo-make crate
|
|
uses: actions-rs/install@v0.1
|
|
with:
|
|
crate: cargo-make
|
|
version: latest
|
|
use-tool-cache: true
|
|
- name: Install gbafix crate
|
|
uses: actions-rs/install@v0.1
|
|
with:
|
|
crate: gbafix
|
|
version: latest
|
|
use-tool-cache: true
|
|
- uses: actions/checkout@v2
|
|
- name: Make Test
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
toolchain: ${{ matrix.rust.toolchain }}
|
|
command: make
|
|
args: test
|
|
- name: Make Release
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
toolchain: ${{ matrix.rust.toolchain }}
|
|
command: make
|
|
args: justrelease
|
|
build-book:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
default: true
|
|
- name: Install mdbook crate
|
|
uses: actions-rs/install@v0.1
|
|
with:
|
|
crate: mdbook
|
|
version: latest
|
|
use-tool-cache: true
|
|
- uses: actions/checkout@v2
|
|
- name: Build the book
|
|
run: cd book && mdbook build |