Skip to content

Commit d83a9b9

Browse files
committed
Refactor build workflow to improve CMake command structure and remove unnecessary steps
1 parent 3cbba3f commit d83a9b9

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/build-occt-wasm-mingw.yml

+2-14
Original file line numberDiff line numberDiff line change
@@ -107,23 +107,11 @@ jobs:
107107
-DUSE_OPENGL=ON ^
108108
-DINSTALL_DIR="${{ github.workspace }}/install-wasm-${{ matrix.build_type }}" ^
109109
-DCMAKE_CXX_FLAGS="-s WASM=1 -s EXPORTED_RUNTIME_METHODS=['ccall','cwrap'] -s ALLOW_MEMORY_GROWTH=1" ^
110-
-DCMAKE_EXECUTABLE_SUFFIX=".js" ..
110+
-DCMAKE_EXECUTABLE_SUFFIX=".js" ^
111+
-S "${{ github.workspace }}"
111112
112113
- name: Build
113114
shell: bash
114115
run: |
115116
cd build-${{ matrix.build_type }}
116117
cmake --build . --config ${{ matrix.build_type }} --target install -- -j4
117-
118-
- name: Upload artifacts
119-
uses: actions/upload-artifact@v4
120-
with:
121-
name: wasm-build-${{ matrix.build_type }}
122-
path: install-wasm-${{ matrix.build_type }}
123-
retention-days: 7
124-
125-
- name: Clear build directory
126-
shell: pwsh
127-
run: |
128-
Remove-Item -Recurse -Force build-${{ matrix.build_type }}
129-
Remove-Item -Recurse -Force install-wasm-${{ matrix.build_type }}

0 commit comments

Comments
 (0)