Fix render speedup after simulation stalls/reconfiguration #51
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 static page | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Type check | |
| run: npm run lint | |
| - name: Build app | |
| run: npm run build | |
| - name: Verify control sliders are present in bundle | |
| shell: bash | |
| run: | | |
| shopt -s nullglob | |
| files=(dist/assets/index-*.js) | |
| if [ ${#files[@]} -eq 0 ]; then | |
| echo "No built JS bundle found in dist/assets" | |
| exit 1 | |
| fi | |
| grep -n "Gravity" "${files[@]}" | |
| grep -n "Flask Width" "${files[@]}" | |
| grep -n "Flask Height" "${files[@]}" | |
| - name: Prepare release artifact | |
| run: | | |
| rm -rf release | |
| mkdir -p release | |
| cp -R dist release/dist | |
| cp serve_dist.py release/serve_dist.py | |
| - name: Upload dist artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: static-page | |
| path: release | |
| if-no-files-found: error |