release SDK v0.15.7 #711
Workflow file for this run
This file contains hidden or 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
| name: Documentation | |
| on: | |
| push: | |
| branches: [ main ] | |
| # Always run on commits | |
| pull_request: | |
| paths: | |
| - 'linera-protocol' | |
| - 'src/**' | |
| - 'book.toml' | |
| - '.github/workflows/documentation.yml' | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: 'true' | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| # mdbook ignores the rust-toolchain in the repo so we make it the default. | |
| - name: 'Set default toolchain' | |
| run: | | |
| rustup show active-toolchain | awk '{ print $1 }' | xargs rustup default | |
| - name: 'Setup mdbook' | |
| uses: peaceiris/actions-mdbook@v2 | |
| with: | |
| mdbook-version: '0.4.48' | |
| - name: 'Install Protoc' | |
| uses: arduino/setup-protoc@v3 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: 'Build the Linera SDK' | |
| run: | | |
| cd linera-protocol | |
| cargo clippy --locked -p linera-sdk --features test,wasmer | |
| DUPLICATE_LIBS=(target/debug/deps/libserde-* target/debug/deps/liblinera_sdk-*) | |
| cargo build --locked -p linera-sdk --features test,wasmer | |
| # mdbook test wants only one library but build dependencies can create duplicates. | |
| rm "${DUPLICATE_LIBS[@]}" | |
| - name: Install mdbook preprocessors | |
| run: | | |
| cargo install mdbook-linkcheck@0.7.7 mdbook-mermaid@0.15.0 mdbook-admonish@1.19.0 | |
| - run: mdbook build | |
| - name: 'Check documentation' | |
| run: mdbook test -L linera-protocol/target/debug/deps/ | |
| formatting: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| - name: 'Setup Node' | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16 | |
| - name: 'Install prettier' | |
| run: npm install -g prettier | |
| - name: 'Check formatting' | |
| run: prettier --check src/ |