registry: use vfox for emsdk (#10846) #4109
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: test-vfox | |
| on: | |
| pull_request: | |
| paths: | |
| - "crates/vfox/**" | |
| push: | |
| branches: [main, release] | |
| concurrency: | |
| group: test-vfox-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| MISE_TRUSTED_CONFIG_PATHS: ${{ github.workspace }} | |
| MISE_EXPERIMENTAL: 1 | |
| MISE_LOCKFILE: 1 | |
| RUST_BACKTRACE: 1 | |
| GITHUB_TOKEN: ${{ secrets.MISE_GH_TOKEN || secrets.GITHUB_TOKEN }} | |
| jobs: | |
| "test-vfox": | |
| runs-on: namespace-profile-endev-linux-amd64;overrides.cache-tag=mise-pr-rust-linux | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| - uses: namespacelabs/nscloud-cache-action@58bf6e08898e88803c098e2b522668541cd3b2e3 # v1 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| ~/.cargo/.global-cache | |
| ~/.cache/sccache | |
| - uses: taiki-e/install-action@51cd0b8c0499559d9a4d75c0f5c67bec3a894ec8 # v2 | |
| with: { tool: sccache } | |
| - name: Configure sccache | |
| run: | | |
| export RUSTC_WRAPPER=sccache | |
| export SCCACHE_DIR="$HOME/.cache/sccache" | |
| export SCCACHE_CACHE_SIZE=20G | |
| { | |
| echo "RUSTC_WRAPPER=$RUSTC_WRAPPER" | |
| echo "SCCACHE_DIR=$SCCACHE_DIR" | |
| echo "SCCACHE_CACHE_SIZE=$SCCACHE_CACHE_SIZE" | |
| } >> "$GITHUB_ENV" | |
| sccache --zero-stats | |
| - run: | | |
| cargo build --all-features | |
| echo "$PWD/target/debug" >> "$GITHUB_PATH" | |
| - run: mise -v | |
| - run: mise --cd crates/vfox install | |
| - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 # zizmor: ignore[cache-poisoning] cache key is scoped by mise.toml hash; tool installs only | |
| with: | |
| key: ${{ runner.os }}-${{ runner.arch }}-mise-tools-vfox-${{ hashFiles('crates/vfox/mise.toml') }} | |
| restore-keys: ${{ runner.os }}-${{ runner.arch }}-mise-tools-vfox- | |
| path: | | |
| ~/.local/share/mise | |
| ~/.cache/mise | |
| - run: mise --cd crates/vfox run build | |
| - run: mise --cd crates/vfox run lint | |
| - run: mise --cd crates/vfox run test | |
| - run: sccache --show-stats | |
| if: always() |