Skip to content

Commit f723fca

Browse files
committed
Import from internal tree
1 parent 3daeae3 commit f723fca

28 files changed

+4825
-0
lines changed

.clang-format

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
BasedOnStyle: Chromium
2+
Language: Cpp
3+
MaxEmptyLinesToKeep: 3
4+
IndentCaseLabels: false
5+
AllowShortIfStatementsOnASingleLine: false
6+
AllowShortCaseLabelsOnASingleLine: false
7+
AllowShortLoopsOnASingleLine: false
8+
DerivePointerAlignment: false
9+
PointerAlignment: Right
10+
SpaceAfterCStyleCast: true
11+
TabWidth: 4
12+
UseTab: Never
13+
IndentWidth: 4
14+
BreakBeforeBraces: Linux
15+
AccessModifierOffset: -4
16+
AttributeMacros:
17+
- UNUSED
18+
- __ALIGNED
19+
- PACKED
20+
- FORCE_INLINE
21+
StatementMacros:
22+
- __UNREACHABLE

.github/workflows/main.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v6
23+
24+
- name: Setup Emscripten
25+
uses: mymindstorm/setup-emsdk@v14
26+
with:
27+
version: 'latest'
28+
29+
- name: Build WebAssembly
30+
run: make wasm
31+
32+
- name: Setup Pages
33+
uses: actions/configure-pages@v5
34+
with:
35+
enablement: true
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v4
39+
with:
40+
path: 'web'
41+
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
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+
# Build artifacts
2+
example
3+
output.wav
4+
melody.h
5+
6+
# Emscripten/WASM build outputs
7+
*.wasm
8+
picosynth.js
9+
web/picosynth.js
10+
web/picosynth.wasm
11+
12+
# Editor/IDE
13+
*.swp
14+
*.swo
15+
*~
16+
.vscode/
17+
.idea/
18+
19+
# macOS
20+
.DS_Store

0 commit comments

Comments
 (0)