Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "v*"

env:
AQUASCOPE_VERSION: 0.3.5
AQUASCOPE_VERSION: 0.3.6
AQUASCOPE_TOOLCHAIN: nightly-2024-12-15

jobs:
Expand All @@ -22,13 +22,15 @@ 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}
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
run: cargo test --all-features --locked
- name: Lint Rust package
run: cargo clippy --all-features --locked -- -D warnings
run: |
cargo clippy --all-features --locked -- -D warnings
cargo fmt --check
- name: Test JS package
run: depot build --lint-fail && depot test
working-directory: js
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,19 @@ runs:
with:
profile: minimal
toolchain: stable
components: clippy
components: clippy,rustfmt
target: ${{ inputs.target }}
override: true
- uses: Swatinem/rust-cache@v1
- name: Install cargo-make
uses: baptiste0928/cargo-install@v2
with:
crate: cargo-make
- uses: Swatinem/rust-cache@v2
- uses: extractions/setup-just@v3
- name: Install Depot
uses: cognitive-engineering-lab/depot/actions/install@main
- 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
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.45/mdbook-v0.4.45-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
run: just init-bindings
shell: bash
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Thanks for your interest in contributing to mdbook-quiz! To get started, follow the "From Source" installation instructions in the README. Then from the root of the repository, run:

```
cargo make watch
just watch
```

This will build the Rust mdBook preprocessor, and rebuild it when Rust source files are changed. Then in another terminal, run:
Expand Down
Loading
Loading