Add typechecking compiler pass #158
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: Build | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| linux: | |
| name: Linux | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: rustup target add wasm32-unknown-unknown | |
| - run: rustup component add clippy rustfmt | |
| # Enforce lockfile correctness. | |
| - run: cargo check --locked | |
| # Build crates and whatever else. | |
| - run: make | |
| # Test all crates, except those that force-target WASM. | |
| - run: cargo test --workspace | |
| # Cosmetic checks. | |
| - run: cargo clippy | |
| - run: cargo fmt --check | |
| website: | |
| name: Website | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: rustup target add wasm32-unknown-unknown | |
| - run: cargo build -p starstream_sandbox --release | |
| - run: cd website && npm i && npm run build | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./website/build | |
| website-deploy: | |
| name: GitHub Pages | |
| needs: website | |
| if: github.event_name == 'push' && github.ref_name == 'master' | |
| permissions: | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/configure-pages@v5 | |
| - uses: actions/deploy-pages@v4 | |
| id: deployment | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} |