Compute Size (Manual) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compute Size (Manual) | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
path: emscripten-glfw | |
- name: Checkout emscripten | |
uses: actions/checkout@v4 | |
with: | |
repository: emscripten-core/emsdk | |
path: emscripten | |
- name: Install Emscripten | |
working-directory: ${{github.workspace}}/emscripten | |
run: | | |
./emsdk install latest | |
./emsdk activate latest | |
source ./emsdk_env.sh | |
emcc -v | |
- name: Compile with port | |
working-directory: ${{github.workspace}}/emscripten-glfw | |
run: | | |
source ${{github.workspace}}/emscripten/emsdk_env.sh | |
mkdir build-with-port | |
emcc --version | |
emcc --use-port=contrib.glfw3 examples/example_minimal/main.cpp -O2 -o build-with-port/index.html | |
ls -l build-with-port | |
- name: Compile with port (small) | |
working-directory: ${{github.workspace}}/emscripten-glfw | |
run: | | |
source ${{github.workspace}}/emscripten/emsdk_env.sh | |
mkdir build-with-port-small | |
emcc --version | |
emcc --use-port=contrib.glfw3:disableWarning=true:disableMultiWindow=true:disableJoystick=true examples/example_minimal/main.cpp -O2 -o build-with-port-small/index.html | |
ls -l build-with-port-small |