choo: add more comments to choo builder, detect cycles #501
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: Build | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
CARGO_NET_GIT_FETCH_WITH_CLI: true | |
CI: 1 | |
RUST_BACKTRACE: short | |
RUSTFLAGS: "-D warnings -W rust-2021-compatibility" | |
RUSTUP_MAX_RETRIES: 10 | |
on: | |
pull_request: | |
branches: [ "master" ] | |
push: | |
branches: [ "master" ] | |
tags: | |
- "nockapp-*" | |
- "choo-*" | |
jobs: | |
build: | |
name: "Build Nockapp" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: zorp-corp/rust-cache@v2 | |
with: | |
workspaces: ". -> target" | |
- name: Install cargo-nextest | |
uses: taiki-e/install-action@nextest | |
- name: Run tests | |
run: cargo nextest run | |
- name: Install Miri | |
run: rustup component add miri | |
- name: Test with Miri | |
run: cargo miri nextest run | |
- name: Build all | |
run: cargo build --release | |
- name: Compile choo kernel with bootstrap choo | |
run: target/release/choo apps/choo/bootstrap/kernel.hoon apps/hoon-deps | |
- name: Move choo jam back into assets | |
run: mv out.jam apps/choo/bootstrap/choo.jam | |
- name: Rebuild choo with built jamfile | |
run: cargo build --release --bin choo | |
- name: Release Choo Artifact | |
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'choo') }} | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
target/release/choo |