Skip to content

Commit 54556a2

Browse files
committed
Initial release
0 parents  commit 54556a2

Some content is hidden

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

50 files changed

+73101
-0
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: koppi
2+
custom: https://koppi.github.io

.github/workflows/os.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: OS
2+
3+
on:
4+
push:
5+
branches: ["*"]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
11+
macos:
12+
runs-on: macos-15
13+
name: MacOS
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Install some build dependencies
19+
run: |
20+
brew install git sdl2 sdl2_ttf glfw3 glew
21+
22+
- name: Configure build
23+
run: |
24+
cmake --preset release
25+
26+
- name: Execute build
27+
run: |
28+
cmake --build --preset synth-release
29+
30+
- name: Upload binary
31+
uses: actions/upload-artifact@v4
32+
with:
33+
if-no-files-found: error
34+
name: synth-macos-15
35+
path: |
36+
build/release/*
37+
38+
windows:
39+
runs-on: windows-2022
40+
name: Windows
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@v4
44+
45+
- name: Configure build
46+
run: |
47+
cmake --preset release-windows
48+
49+
- name: Execute build
50+
run: |
51+
cmake --build --preset synth-release-windows
52+
53+
- name: Upload binary
54+
uses: actions/upload-artifact@v4
55+
with:
56+
if-no-files-found: error
57+
name: synth-windows
58+
path: |
59+
build\release-windows\Release\*
60+
61+
linux:
62+
runs-on: ubuntu-22.04
63+
name: Linux
64+
steps:
65+
- name: Checkout
66+
uses: actions/checkout@v4
67+
68+
- name: Build project using docker
69+
run: |
70+
docker buildx build . -f dist/linux.Dockerfile --progress=plain --output out
71+
72+
- name: Upload binary
73+
uses: actions/upload-artifact@v4
74+
with:
75+
if-no-files-found: error
76+
name: synth-linux
77+
path: |
78+
out/*

.github/workflows/web.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Web
2+
3+
on:
4+
push:
5+
branches: ["*"]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
permissions:
10+
pages: write
11+
id-token: write
12+
actions: write
13+
14+
jobs:
15+
16+
build:
17+
runs-on: ubuntu-22.04
18+
name: Wasm
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
with:
23+
submodules: recursive
24+
25+
- name: Build using docker
26+
id: build
27+
run: |
28+
docker buildx build . -f dist/web.Dockerfile --progress=plain --output out
29+
30+
- name: Fix permissions
31+
run: |
32+
chmod -c -R +rX "out/" | while read line; do
33+
echo "::warning title=Invalid file permissions automatically fixed::$line"
34+
done
35+
36+
- name: Upload artifacts to pages
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: out/
40+
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
46+
name: GitHub Pages
47+
runs-on: ubuntu-latest
48+
49+
if: ${{ github.ref == 'refs/heads/main' && github.event.repository.fork == false }}
50+
needs: build
51+
52+
steps:
53+
- name: Deploy
54+
id: deployment
55+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Prerequisites
2+
*.d
3+
4+
# Object files
5+
*.o
6+
*.ko
7+
*.obj
8+
*.elf
9+
10+
# Linker output
11+
*.ilk
12+
*.map
13+
*.exp
14+
15+
# Precompiled Headers
16+
*.gch
17+
*.pch
18+
19+
# Libraries
20+
*.lib
21+
*.a
22+
*.la
23+
*.lo
24+
25+
# Shared objects (inc. Windows DLLs)
26+
*.dll
27+
*.so
28+
*.so.*
29+
*.dylib
30+
31+
# Executables
32+
synth
33+
*.exe
34+
*.out
35+
*.app
36+
*.i*86
37+
*.x86_64
38+
*.hex
39+
40+
# Debug files
41+
*.dSYM/
42+
*.su
43+
*.idb
44+
*.pdb
45+
46+
# Kernel Module Compile Results
47+
*.mod*
48+
*.cmd
49+
.tmp_versions/
50+
modules.order
51+
Module.symvers
52+
Mkfile.old
53+
dkms.conf
54+
55+
# debug information files
56+
*.dwo
57+
58+
build/
59+
60+
imgui.ini
61+
default_config.json

.vscode/tasks.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "cmake",
6+
"label": "CMake: build",
7+
"command": "build",
8+
"targets": [
9+
"synth"
10+
],
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
},
15+
"problemMatcher": [],
16+
"detail": "CMake template build task"
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)