Skip to content

Commit

Permalink
try 1
Browse files Browse the repository at this point in the history
  • Loading branch information
RiscadoA committed Nov 22, 2024
1 parent 160ba99 commit f6a2ab0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
BUILD_TYPE: Release
CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_DIR: "${{ github.workspace }}/.ccache"
CCACHE_COMPILERTYPE: gcc
CCACHE_COMPILERTYPE: emcc
CMAKE_TOOLCHAIN_FILE: ${{ github.workspace }}/cmake/Emscripten.cmake

jobs:
Expand All @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Emscripten
- name: Install emsdk
uses: mymindstorm/setup-emsdk@v14

- name: Install dependencies
Expand All @@ -46,19 +46,16 @@ jobs:
ccache-
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCUBOS_CORE_SAMPLES=ON -DCUBOS_ENGINE_SAMPLES=ON -DCMAKE_TOOLCHAIN_FILE=${{env.CMAKE_TOOLCHAIN_FILE}}
run: emcmake cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCUBOS_CORE_SAMPLES=ON -DCUBOS_ENGINE_SAMPLES=ON -DCMAKE_TOOLCHAIN_FILE=${{env.CMAKE_TOOLCHAIN_FILE}}
shell: bash
env:
CC: emcc
CXX: em++

- name: CCache Prolog
run: |-
ccache -s # Print current cache stats
ccache -z # Zero cache entry
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target all
run: emcmake cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target all

- name: CCache Epilog
run: |
Expand Down

0 comments on commit f6a2ab0

Please sign in to comment.