mirror of
https://github.com/NickTheFox99/RaylibGame.git
synced 2026-06-21 15:15:10 -04:00
Update cmake-multi-platform.yml
This commit is contained in:
41
.github/workflows/cmake-multi-platform.yml
vendored
41
.github/workflows/cmake-multi-platform.yml
vendored
@@ -24,15 +24,8 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
c_compiler: gcc
|
c_compiler: gcc
|
||||||
cpp_compiler: g++
|
cpp_compiler: g++
|
||||||
platform: Linux-gcc
|
platform: Linux
|
||||||
artifact_name: linux-gcc
|
artifact_name: linux
|
||||||
build_type: Release
|
|
||||||
|
|
||||||
- os: ubuntu-latest
|
|
||||||
c_compiler: clang
|
|
||||||
cpp_compiler: clang++
|
|
||||||
platform: Linux-clang
|
|
||||||
artifact_name: linux-clang
|
|
||||||
build_type: Release
|
build_type: Release
|
||||||
|
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
@@ -119,36 +112,7 @@ jobs:
|
|||||||
working-directory: ${{ steps.strings.outputs.build-output-dir }}
|
working-directory: ${{ steps.strings.outputs.build-output-dir }}
|
||||||
run: ctest --build-config ${{ matrix.build_type }}
|
run: ctest --build-config ${{ matrix.build_type }}
|
||||||
|
|
||||||
# For regular pushes, upload as artifacts
|
|
||||||
- name: Upload Build Artifacts
|
|
||||||
if: github.event_name != 'release'
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ${{ matrix.platform }}-build
|
|
||||||
path: |
|
|
||||||
${{ matrix.platform == 'Web' && format('{0}/*.{html,js,data}', steps.strings.outputs.build-output-dir) }}
|
|
||||||
${{ matrix.platform == 'Windows' && format('{0}/{1}/*.exe', steps.strings.outputs.build-output-dir, matrix.build_type) }}
|
|
||||||
${{ contains(matrix.platform, 'Linux') && format('{0}/*', steps.strings.outputs.build-output-dir) }}
|
|
||||||
${{ matrix.platform == 'MacOS' && format('{0}/*', steps.strings.outputs.build-output-dir) }}
|
|
||||||
assets/**
|
|
||||||
exclude: |
|
|
||||||
${{ contains(matrix.platform, 'Linux') || matrix.platform == 'MacOS' ? '**/*.cmake
|
|
||||||
**/*.txt
|
|
||||||
**/*.json
|
|
||||||
**/*.a
|
|
||||||
**/*.o
|
|
||||||
**/*.d
|
|
||||||
**/*.make
|
|
||||||
**/*.internal
|
|
||||||
**/*.marks
|
|
||||||
**/Makefile
|
|
||||||
**/.ninja*
|
|
||||||
**/*.ninja
|
|
||||||
**/CMakeFiles/**' : '' }}
|
|
||||||
|
|
||||||
# For releases, create ZIP files and upload to the release
|
|
||||||
- name: Create Release ZIP
|
- name: Create Release ZIP
|
||||||
if: github.event_name == 'release'
|
|
||||||
run: |
|
run: |
|
||||||
cd ${{ steps.strings.outputs.build-output-dir }}
|
cd ${{ steps.strings.outputs.build-output-dir }}
|
||||||
if [ "${{ matrix.platform }}" = "Web" ]; then
|
if [ "${{ matrix.platform }}" = "Web" ]; then
|
||||||
@@ -162,7 +126,6 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
if: github.event_name == 'release'
|
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user