Skip to content

Commit

Permalink
Factor colors into CSS variables, add standalone example. Update to 0…
Browse files Browse the repository at this point in the history
….3.5 (#42)

* Factor colors into CSS variables, add standalone example

* Update to 0.3.5

* Update lockfiles

* Update CI
  • Loading branch information
willcrichton authored May 15, 2024
1 parent 2f9989c commit 30d1ccc
Show file tree
Hide file tree
Showing 35 changed files with 8,164 additions and 2,900 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ jobs:
run: |
rustup toolchain install ${AQUASCOPE_TOOLCHAIN} -c rust-src rustc-dev llvm-tools-preview miri
cargo +${AQUASCOPE_TOOLCHAIN} miri setup
echo "LD_LIBRARY_PATH=$($(rustup which --toolchain ${AQUASCOPE_TOOLCHAIN} rustc) --print target-libdir)" >> ${GITHUB_ENV}
mkdir bin
echo "LD_LIBRARY_PATH=$($(rustup which --toolchain ${AQUASCOPE_TOOLCHAIN} rustc) --print target-libdir)" >> ${GITHUB_ENV}
curl -sSL https://github.com/cognitive-engineering-lab/aquascope/releases/download/v${AQUASCOPE_VERSION}/aquascope-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> ${GITHUB_PATH}
- name: Test Rust package
Expand All @@ -37,4 +35,12 @@ jobs:
run: cargo clippy --all-features --locked -- -D warnings
- name: Test JS package
run: depot test
working-directory: js
working-directory: js
- name: Install mdbook-quiz
run: cargo install --path crates/mdbook-quiz --debug --locked
- name: Build example mdbook
run: mdbook build
working-directory: example/mdbook
- name: Build example standalone
run: depot build
working-directory: example/standalone
19 changes: 7 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,27 +91,22 @@ jobs:
# This ensures that the `crates/mdbook-quiz/js/` directory is
# populated before running publish
- name: Cargo build
run: cargo build
run: cargo build
- name: Install mdbook-quiz
run: cargo install --path crates/mdbook-quiz --debug --locked
- name: Build example mdbook
run: mdbook build
working-directory: example/mdbook
- name: Cargo release
run: cargo workspaces publish --from-git --yes --allow-dirty --token ${{ secrets.CARGO_TOKEN }}
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./js/packages/quiz/package.json
- name: Install mdbook
run: |
mkdir bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> ${GITHUB_PATH}
- name: Install mdbook-quiz
run: cargo install --path crates/mdbook-quiz --debug --locked
- name: Build example mdbook
run: mdbook build
working-directory: example
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/book
publish_dir: ./example/mdbook/book


6 changes: 6 additions & 0 deletions .github/workflows/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ runs:
curl https://raw.githubusercontent.com/cognitive-engineering-lab/depot/main/scripts/install.sh | sh
echo "$HOME/.local/bin" >> ${GITHUB_PATH}
shell: bash
- name: Install mdbook
run: |
mkdir bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> ${GITHUB_PATH}
shell: bash
- name: Initialize TS bindings
run: cargo make init-bindings
shell: bash
Loading

0 comments on commit 30d1ccc

Please sign in to comment.