Explorar o código

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.
Biswapriyo Nath %!s(int64=3) %!d(string=hai) anos
pai
achega
d9c5475cf1
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      .github/workflows/main.yml

+ 5 - 5
.github/workflows/main.yml

@@ -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