Landing page update #8
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| nix-syntax: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - name: Parse all Nix files | |
| run: find . -name '*.nix' -exec nix-instantiate --parse {} + > /dev/null | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@main | |
| - run: ./bin/lint | |
| test: | |
| strategy: | |
| matrix: | |
| include: | |
| - runner: ubuntu-latest | |
| - runner: macos-latest | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@main | |
| - run: ./bin/tests | |
| e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@main | |
| - run: ./bin/e2e | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report | |
| path: e2e/test-results/ | |
| retention-days: 7 | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: pnpm | |
| cache-dependency-path: js/pnpm-lock.yaml | |
| - name: Build UI | |
| shell: bash | |
| run: | | |
| cargo install wasm-pack | |
| cd crates/browser | |
| wasm-pack build --target web --release --out-dir pkg | |
| cd ../.. | |
| cd js | |
| pnpm install --frozen-lockfile | |
| pnpm --filter @blit-sh/core run build | |
| pnpm --filter @blit-sh/solid run build | |
| pnpm --filter @blit-sh/ui run build | |
| - run: cargo build --release -p blit-cli -p blit-server -p blit-gateway -p blit-webrtc-forwarder | |
| build-debs: | |
| strategy: | |
| matrix: | |
| include: | |
| - runner: ubuntu-latest | |
| system: x86_64-linux | |
| - runner: ubuntu-24.04-arm | |
| system: aarch64-linux | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@main | |
| - run: ./bin/build-debs | |
| build-tarballs: | |
| strategy: | |
| matrix: | |
| include: | |
| - runner: ubuntu-latest | |
| system: x86_64-linux | |
| - runner: ubuntu-24.04-arm | |
| system: aarch64-linux | |
| - runner: macos-latest | |
| system: aarch64-darwin | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@main | |
| - run: ./bin/build-tarballs |