7
0
mirror of https://gitlab.com/raylibtemplates/rt.git synced 2026-06-05 02:00:54 -04:00

Update cmake-multi-platform.yml

This commit is contained in:
2025-11-07 00:22:28 +00:00
committed by GitHub
parent 8c9ea5e65d
commit 5c941b25f3

View File

@@ -82,21 +82,10 @@ jobs:
${{ runner.os }}-cmake-${{ matrix.c_compiler }}-
${{ runner.os }}-cmake-
- name: Cache emsdk
if: matrix.c_compiler == 'emcc'
uses: actions/cache@v4
with:
path: |
emsdk-cache
key: ${{ runner.os }}-emsdk-${{ hashFiles('.github/workflows/**') }}
restore-keys: |
${{ runner.os }}-emsdk-
- name: Setup Emscripten
if: matrix.c_compiler == 'emcc'
uses: mymindstorm/setup-emsdk@v12
uses: mymindstorm/setup-emsdk@v14
with:
actions-cache-folder: emsdk-cache
version: 3.1.45
- name: Setup Web Build Environment
@@ -132,14 +121,15 @@ jobs:
if: matrix.platform == 'Web'
run: |
cd build
zip -r ../${{ matrix.artifact_name }}.zip *.html *.js *.data
zip -r ../${{ matrix.artifact_name }}.zip *.html *.js *.data *.wasm
shell: bash
- name: Create Release ZIP (Linux/macOS)
if: matrix.platform == 'Linux' || matrix.platform == 'MacOS'
run: |
cd build
zip -r ../${{ matrix.artifact_name }}.zip * -x "*.cmake" "*.txt" "*.json" "*.a" "*.o" "*.d" "*.make" "*.internal" "*.marks" "Makefile" ".ninja*" "*.ninja" "CMakeFiles/*"
# Find executable files (not libraries or scripts) and zip them
find . -maxdepth 1 -type f -executable ! -name "*.so" ! -name "*.a" ! -name "*.sh" -exec zip ../${{ matrix.artifact_name }}.zip {} +
shell: bash
- name: Upload Build Artifacts