Skip to content

Commit

Permalink
Add misc last files
Browse files Browse the repository at this point in the history
  • Loading branch information
Scthe committed Jul 15, 2024
1 parent be15384 commit 8c15e85
Show file tree
Hide file tree
Showing 9 changed files with 449 additions and 10 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Deploy

on:
push:
branches: [master]

permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'

- name: Build
run: |
yarn install
yarn build
touch build/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
24 changes: 18 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,27 @@ yarn-error.log*
build
static/*.pem

# wasm
# static/*.wasm
# src/lib/*.js
# !src/lib/dummy.js
src/lib/tmp

# test visualizations
src/scene/renderImpostors/__test__/test_preview.png
src/scene/renderImpostors/__test__/test_preview.n.png
src/passes/rasterizeSw/__test__/*.png

# assets
static/models/jinx
static/models/bunny-hires.obj
static/models/lucy.obj
static/models/robot.*
static/models/xyzrgb_dragon.obj

# custom
*.code-workspace
_references
output.png
makefile
scenes
*.obj
static/*.wasm
src/lib/meshoptimizer.js
src/lib/metis.js
src/lib/metis2.js

4 changes: 3 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"tasks": {
"start": "DENO_NO_PACKAGE_JSON=1 && deno run --allow-read=. --allow-write=. --unstable-webgpu src/index.deno.ts",
"test": "DENO_NO_PACKAGE_JSON=1 && deno test --allow-read=. --allow-write=. --unstable-webgpu src",
"impostors": "DENO_NO_PACKAGE_JSON=1 && deno test --allow-read=. --allow-write=. --unstable-webgpu src/scene/renderImpostors/renderImpostors.test.ts"
"impostors": "DENO_NO_PACKAGE_JSON=1 && deno test --allow-read=. --allow-write=. --unstable-webgpu src/scene/renderImpostors/renderImpostors.test.ts",
"rasterizeSw": "DENO_NO_PACKAGE_JSON=1 && deno test --allow-read=. --allow-write=. --unstable-webgpu src/passes/rasterizeSw/rasterizeSwPass.test.ts"
},
"imports": {
"png": "https://deno.land/x/[email protected]/mod.ts",
Expand All @@ -11,6 +12,7 @@
"std-path": "https://deno.land/[email protected]/path/mod.ts",
"fs": "https://deno.land/[email protected]/fs/mod.ts",
"assert": "https://deno.land/[email protected]/assert/mod.ts",
"deep-merge": "https://deno.land/[email protected]/collections/deep_merge.ts",
"webgl-obj-loader": "npm:[email protected]"
},
"test": {
Expand Down
Loading

0 comments on commit 8c15e85

Please sign in to comment.