Skip to content

Use approximate cardinality to decide whether to use dict compression #2547

Use approximate cardinality to decide whether to use dict compression

Use approximate cardinality to decide whether to use dict compression #2547

Workflow file for this run

---
name: Vortex Web
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
pull_request: { }
push:
branches: [develop]
permissions:
contents: read
defaults:
run:
working-directory: vortex-web
jobs:
changes:
name: Detect Changes
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
pull-requests: read
outputs:
web: ${{ steps.filter.outputs.web }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4
id: filter
with:
filters: |
web:
- "vortex-web/**"
- ".github/workflows/web.yml"
check:
name: Check & Lint
needs: [changes]
if: needs.changes.outputs.web == 'true'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: ./.github/actions/setup-rust
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
enable-sccache: "false"
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
working-directory: .
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "24"
cache: "npm"
cache-dependency-path: vortex-web/package-lock.json
- run: npm ci
- env:
RUSTFLAGS: --cfg getrandom_backend="unsupported"
run: npm run wasm
- run: npm run format:check
- run: npm run lint
- run: npm run typecheck
- run: npm run build-storybook
build:
name: Build
needs: [changes]
if: needs.changes.outputs.web == 'true'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: ./.github/actions/setup-rust
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
enable-sccache: "false"
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
working-directory: .
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "24"
cache: "npm"
cache-dependency-path: vortex-web/package-lock.json
- run: npm ci
- env:
RUSTFLAGS: --cfg getrandom_backend="unsupported"
run: npm run build
- name: Upload build artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: vortex-explorer
path: vortex-web/dist/
deploy:
name: Deploy to Cloudflare Pages
needs: [build]
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
deployments: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.deployment-url }}
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: vortex-explorer
path: dist
- name: Deploy to Cloudflare Pages
id: deploy
uses: cloudflare/wrangler-action@9acf94ace14e7dc412b076f2c5c20b8ce93c79cd # v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist/ --project-name=vortex-explorer --branch=${{ github.head_ref || github.ref_name }}