Skip to content

Commit

Permalink
Release Trustfall v0.6 and associated crates. (#405)
Browse files Browse the repository at this point in the history
* Release Trustfall v0.6 and associated crates.

* Untangle dependencies.

* Move `trustfall_rustdoc` crate to its own workspace.

* Fix job name.

* Update .github/workflows/ci.yml
  • Loading branch information
obi1kenobi authored Jul 25, 2023
1 parent 6757226 commit de91110
Show file tree
Hide file tree
Showing 9 changed files with 1,116 additions and 205 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- lint
- rust-tests
- rust-fuzz
- rust-rustdoc-wasm
- python-tests
- wasm-tests
- js-lint
Expand All @@ -37,6 +38,7 @@ jobs:
echo "python-tests: ${{ needs.python-tests.result }}"
echo "wasm-tests: ${{ needs.wasm-tests.result }}"
echo "js-lint: ${{ needs.js-lint.result }}"
echo "rust-rustdoc-wasm: ${{ needs.rust-rustdoc-wasm.result }}"
# Fail this required job if any of its dependent jobs have failed.
#
Expand All @@ -55,6 +57,8 @@ jobs:
run: exit 1
- if: ${{ needs.js-lint.result != 'success' }}
run: exit 1
- if: ${{ needs.rust-rustdoc-wasm.result != 'success' }}
run: exit 1

python-tests:
name: Python tests and maturin build
Expand Down Expand Up @@ -204,6 +208,9 @@ jobs:
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2
with:
workspaces: |
./trustfall_core/fuzz
- uses: r7kamura/rust-problem-matchers@v1

Expand All @@ -224,6 +231,44 @@ jobs:
cd trustfall_core/fuzz
cargo doc --workspace --all-features --no-deps --document-private-items
rust-rustdoc-wasm:
name: Check rustdoc WASM target
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Install rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2
with:
workspaces: |
./experiments/trustfall_rustdoc
- uses: r7kamura/rust-problem-matchers@v1

- name: cargo clippy
run: |
cd experiments/trustfall_rustdoc
cargo clippy --all-features --all-targets -- -D warnings --allow deprecated
- name: cargo fmt
run: |
cd experiments/trustfall_rustdoc
cargo fmt -- --check
- name: cargo doc
env:
RUSTDOCFLAGS: -D warnings
run: |
cd experiments/trustfall_rustdoc
cargo doc --all-features --no-deps --document-private-items
wasm-tests:
name: WASM tests
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit de91110

Please sign in to comment.