Skip to content

Commit

Permalink
Add workflow to build the book example
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Mar 22, 2024
1 parent f78ddf1 commit f1cb877
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
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/*

0 comments on commit f1cb877

Please sign in to comment.