File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Deploy to GitHub Pages
22
33on :
44 push :
5- branches : [ main ] # main 브랜치에 푸시될 때마다 실행
5+ branches : [ main ]
66
77permissions :
88 contents : write
@@ -19,27 +19,20 @@ jobs:
1919 with :
2020 version : latest
2121
22- - name : Verify Emscripten
23- run : emcc -v
24-
2522 - name : Build WebAssembly
2623 run : |
27- # 모든 소스 파일을 포함하여 컴파일 수행
28- # -s USE_SDL=2: SDL2 라이브러리 자동 포함
29- # -O3: 코드 최적화 (성능 향상)
30- emcc src/main.cpp src/render/*.cpp src/game/*.cpp
31- -Isrc
32- -s USE_SDL=2
33- -s WASM=1
34- -s ALLOW_MEMORY_GROWTH=1
35- -O3
24+ emcc src/main.cpp src/render/*.cpp src/game/*.cpp \
25+ -Isrc \
26+ -sUSE_SDL=2 \
27+ -sWASM=1 \
28+ -sALLOW_MEMORY_GROWTH=1 \
29+ -O3 \
3630 -o index.html
3731
3832 - name : Deploy to GitHub Pages
3933 uses : peaceiris/actions-gh-pages@v3
4034 with :
4135 github_token : ${{ secrets.GITHUB_TOKEN }}
4236 publish_dir : ./
43- publish_branch : gh-pages # 빌드 결과물을 gh-pages 브랜치에 저장
44- # 배포할 파일들만 선택
37+ publish_branch : gh-pages
4538 publish_files : index.html,index.js,index.wasm
You can’t perform that action at this time.
0 commit comments