Merge pull request #75 from quake/quake/libc #377
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, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Install Rust target | |
run: rustup target add riscv64imac-unknown-none-elf | |
- name: Install cross | |
run: cargo install cross --git https://github.com/cross-rs/cross --rev=6982b6c | |
- name: Build without riscv C compiler | |
run: cargo build --target=riscv64imac-unknown-none-elf --no-default-features --features=ckb-types,allocator | |
- name: Check example | |
run: cross check --examples | |
- name: Install capsule | |
run: cargo install ckb-capsule --git https://github.com/nervosnetwork/capsule --rev 5c1b2ce | |
- name: Run tests | |
run: make test |