-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to build the
book
example
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build | ||
on: [push, pull_request] | ||
jobs: | ||
book: | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
RUSTFLAGS: --deny warnings | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
steps: | ||
- uses: hecrj/setup-rust-action@v2 | ||
with: | ||
rust-version: stable | ||
- name: Add `wasm32-unknown-unknown` target | ||
run: rustup target add wasm32-unknown-unknown | ||
- name: Install `mdbook` and `wasm-bindgen-cli` | ||
run: cargo install mdbook wasm-bindgen-cli | ||
- name: Install `mdbook-iced` | ||
run: cargo install --path . | ||
- name: Build book | ||
run: cd book && mdbook build | ||
- name: Check iceberg artifacts exist | ||
run: ls book/.icebergs/* |