Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix sppark memory issues and run compute-saniziter in CI #7310

Fix sppark memory issues and run compute-saniziter in CI

Fix sppark memory issues and run compute-saniziter in CI #7310

Workflow file for this run

name: website
on:
merge_group:
pull_request:
branches: [main, "release-*"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
# see: https://github.com/orgs/community/discussions/26822
website-status-check:
if: always()
needs:
- check
- doc-test-main
- doc-test-stable
runs-on: ubuntu-latest
steps:
- name: Check all job status
# see https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#needs-context
# see https://stackoverflow.com/a/67532120/4907315
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
check: ${{ steps.filter.outputs.check }}
doc-test-main: ${{ steps.filter.outputs.doc-test-main }}
doc-test-stable: ${{ steps.filter.outputs.doc-test-stable }}
steps:
- uses: actions/checkout@v4
- uses: risc0/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
id: filter
with:
filters: |
check:
- .github/workflows/website.yml
- website/**
doc-test-main:
- rust-toolchain.toml
- .github/actions/**
- .github/workflows/website.yml
- bonsai/**
- risc0/**
- website/api/**
- website/doc-test/main/**
- website/docs/**
doc-test-stable:
- .github/actions/**
- .github/workflows/website.yml
- website/api_versioned_docs/version-0.21/**
- website/doc-test/stable/**
check:
if: needs.changes.outputs.check == 'true'
needs: changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 🍞 Setup Bun
uses: risc0/[email protected]
with:
bun-version: 1.1.34
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- run: bun install
working-directory: website
- name: lint
run: bun run lint
working-directory: website
doc-test-main:
if: needs.changes.outputs.doc-test-main == 'true'
needs: changes
runs-on: [self-hosted, cluster, Linux, X64, cpu]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/rustup
- uses: ./.github/actions/sccache
- run: cargo run --bin rzup -- --verbose install rust $RISC0_RUST_TOOLCHAIN_VERSION
- run: cargo run --bin rzup -- --verbose install cpp $RISC0_CPP_TOOLCHAIN_VERSION
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RISC0_RUST_TOOLCHAIN_VERSION: 1.88.0
RISC0_CPP_TOOLCHAIN_VERSION: 2024.01.05
- name: build
run: cargo test --release --no-run
working-directory: website/doc-test/main
- name: test
run: cargo test --release
working-directory: website/doc-test/main
- run: sccache --show-stats
doc-test-stable:
if: needs.changes.outputs.doc-test-stable == 'true'
needs: changes
runs-on: [self-hosted, cluster, Linux, X64, cpu]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/rustup
- uses: ./.github/actions/sccache
- run: cargo run --bin rzup -- --verbose install rust $RISC0_RUST_TOOLCHAIN_VERSION
- run: cargo run --bin rzup -- --verbose install cpp $RISC0_CPP_TOOLCHAIN_VERSION
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RISC0_RUST_TOOLCHAIN_VERSION: 1.88.0
RISC0_CPP_TOOLCHAIN_VERSION: 2024.01.05
- name: build
run: cargo test --release --no-run
working-directory: website/doc-test/stable
- name: test
run: cargo test --release
working-directory: website/doc-test/stable
- run: sccache --show-stats