Skip to content

Commit e02fd33

Browse files
committed
initial commit
0 parents  commit e02fd33

105 files changed

Lines changed: 10858 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
verify:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v5
19+
20+
- name: Set up Vite+
21+
uses: voidzero-dev/setup-vp@v1
22+
with:
23+
node-version: 22
24+
cache: true
25+
run-install: |
26+
args: ["--frozen-lockfile"]
27+
28+
- name: Install Rust toolchain
29+
run: |
30+
rustup toolchain install stable --profile minimal --component clippy
31+
rustup default stable
32+
33+
- name: Run workspace CI
34+
run: vp run ci
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Deploy Playground
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
id-token: write
12+
pages: write
13+
14+
concurrency:
15+
group: playground-pages
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v5
25+
26+
- name: Set up Pages
27+
id: pages
28+
uses: actions/configure-pages@v5
29+
30+
- name: Set up Vite+
31+
uses: voidzero-dev/setup-vp@v1
32+
with:
33+
node-version: 22
34+
cache: true
35+
run-install: |
36+
args: ["--frozen-lockfile"]
37+
38+
- name: Install Rust toolchain
39+
run: |
40+
rustup toolchain install stable --profile minimal
41+
rustup default stable
42+
43+
- name: Build playground
44+
env:
45+
PAGES_BASE_PATH: /${{ github.event.repository.name }}/
46+
run: vp run playground:build
47+
48+
- name: Upload Pages artifact
49+
uses: actions/upload-pages-artifact@v4
50+
with:
51+
path: ./playground/dist
52+
53+
deploy:
54+
environment:
55+
name: github-pages
56+
url: ${{ steps.deployment.outputs.page_url }}
57+
needs: build
58+
runs-on: ubuntu-latest
59+
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# macOS
2+
.DS_Store
3+
4+
# logs
5+
*.log
6+
7+
# JavaScript / Vite+
8+
**/node_modules/
9+
**/dist/
10+
**/.vite/
11+
12+
# Rust
13+
/target/
14+
**/target/
15+
16+
# generated native / wasm artifacts
17+
/crates/fastqr_napi/*.node
18+
/crates/fastqr_wasm/pkg/
19+
/npm/fastqr/native/
20+
/npm/fastqr/wasm/

0 commit comments

Comments
 (0)