mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
CI: Fix wasm build running genie in host (#2940)
Changes: * Move the project generation command in prepare step to run in host ubuntu-22.0 os. * Add EMSCRIPTEN explicitly in both prepare and build step. * Run make command with respect to root bgfx workspace directory.
This commit is contained in:
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@@ -160,12 +160,12 @@ jobs:
|
||||
run: |
|
||||
docker pull emscripten/emsdk
|
||||
docker run --rm emscripten/emsdk which emcc em++ emar
|
||||
- name: Build
|
||||
run: |
|
||||
cd bgfx
|
||||
../bx/tools/bin/linux/genie --with-examples --gcc=wasm gmake
|
||||
cd ..
|
||||
docker run --rm -u $(id -u):$(id -g) -v $(pwd):/bgfx emscripten/emsdk make --no-print-directory -C .build/projects/gmake-wasm config=${{ matrix.config }} -j$(nproc) EMSCRIPTEN=/emsdk/upstream/emscripten
|
||||
EMSCRIPTEN=/emsdk/upstream/emscripten ../bx/tools/bin/linux/genie --with-examples --gcc=wasm gmake
|
||||
- name: Build
|
||||
run: >
|
||||
docker run --rm -u $(id -u):$(id -g) -v $(pwd):/bgfx emscripten/emsdk
|
||||
make -C /bgfx/bgfx wasm-${{ matrix.config }} -j$(nproc) EMSCRIPTEN=/emsdk/upstream/emscripten
|
||||
- name: Check
|
||||
run: |
|
||||
cd bgfx
|
||||
|
||||
Reference in New Issue
Block a user