chore: upgrade to typst v0.13.0 #69
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| env: | |
| XTASK_WASI_SDK_VERSION: 24 | |
| XTASK_BINARYEN_VERSION: 119 | |
| XTASK_TYPST_VERSION: 0.13.0 | |
| XTASK_WORK_DIR: ./ci_work_dir | |
| jobs: | |
| test: | |
| name: Build Typst Plugin | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-wasip1 | |
| - name: Restore WASI SDK | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: ci_work_dir/wasi_sdk | |
| key: tools-wasi-sdk-${{ env.XTASK_WASI_SDK_VERSION }} | |
| - name: Restore wasi-stub | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| zint-typst-plugin/vendor/wasm-minimal-protocol/target/release/wasi-stub | |
| zint-typst-plugin/vendor/wasm-minimal-protocol/target/debug/wasi-stub | |
| key: tools-wasi-stub-${{ hashFiles('zint-typst-plugin/vendor/wasm-minimal-protocol/crates/wasi-stub/**') }} | |
| - name: Restore wasm-opt | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: ci_work_dir/tools/wasm-opt | |
| key: tools-binaryen-${{ env.XTASK_BINARYEN_VERSION }} | |
| - name: Restore typst | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: ci_work_dir/tools/typst | |
| key: tools-typst-${{ env.XTASK_TYPST_VERSION }} | |
| - name: Run CI xtask | |
| run: cargo xtask ci | |
| - name: Cache WASI SDK | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: ci_work_dir/wasi_sdk | |
| key: tools-wasi-sdk-${{ env.XTASK_WASI_SDK_VERSION }} | |
| - name: Cache wasi-stub | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: | | |
| zint-typst-plugin/vendor/wasm-minimal-protocol/target/release/wasi-stub | |
| zint-typst-plugin/vendor/wasm-minimal-protocol/target/debug/wasi-stub | |
| key: tools-wasi-stub-${{ hashFiles('zint-typst-plugin/vendor/wasm-minimal-protocol/crates/wasi-stub/**') }} | |
| - name: Cache wasm-opt | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: ci_work_dir/tools/wasm-opt | |
| key: tools-binaryen-${{ env.XTASK_BINARYEN_VERSION }} | |
| - name: Cache typst | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: ci_work_dir/tools/typst | |
| key: tools-typst-${{ env.XTASK_TYPST_VERSION }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: plugin-wasm | |
| path: ./typst-package/zint_typst_plugin.wasm | |
| retention-days: 7 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: manual | |
| path: ./typst-package/manual.pdf | |
| retention-days: 7 |