fixed building UCApp #116
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
paths: | |
- './**.c' | |
- './**.h' | |
- './**.hpp' | |
- './**.cpp' | |
workflow_dispatch: | |
branches: | |
- feature | |
jobs: | |
msbuild-windows-build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@v1.0.2 | |
- name: Run Premake | |
run: ./VS_2019.bat | |
- name: Restore cached objs | |
if: always() | |
id: cache-objs-restore | |
uses: actions/cache/restore@v3 | |
with: | |
path: ./Output | |
key: ${{ runner.os }}-cl-1 | |
- name: Build 64 bit | |
run: | | |
cd ./BuildTools | |
./BuildWin64Debug.bat | |
- name: Build 32 bit | |
run: | | |
cd ./BuildTools | |
./BuildWin32Debug.bat | |
- name: Save cached Objs | |
id: cache-Objs-save | |
uses: actions/cache/save@v3 | |
with: | |
path: ./Output | |
key: ${{ steps.cache-objs-restore.outputs.cache-primary-key }} | |
- name: RunTests for 64 bit | |
run: | | |
cd ./BuildTools | |
./RunTestsWin64Debug.bat | |
gmake-linux-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get X11 Packages | |
run: sudo apt-get install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev | |
- name: Get OpenGl Packages | |
run: sudo apt install mesa-common-dev | |
- name: Make a scripts executable | |
run: | | |
chmod +x ./GNU_Make.sh | |
chmod +x ./BuildTools/BuildLinux32Debug.sh | |
chmod +x ./BuildTools/BuildLinux64Debug.sh | |
chmod +x ./BuildTools/RunTestsLinux32Debug.sh | |
chmod +x ./BuildTools/RunTestsLinux64Debug.sh | |
- name: Run Premake | |
run: ./GNU_Make.sh | |
- name: Restore cached objs | |
id: cache-objs-restore | |
uses: actions/cache/restore@v3 | |
with: | |
path: ./Output | |
key: ${{ runner.os }}-cl-1inux | |
- name: Build 64 bit | |
run: ./BuildTools/BuildLinux64Debug.sh | |
- name: Save cached Objs | |
if: always() | |
id: cache-Objs-save | |
uses: actions/cache/save@v3 | |
with: | |
path: ./Output | |
key: ${{ steps.cache-objs-restore.outputs.cache-primary-key }} | |
- name: RunTests for 64 bit | |
run: ./BuildTools/RunTestsLinux64Debug.sh | |
clang-macos-build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get glfw | |
run: brew install glfw | |
- name: Make a scripts executable | |
run: | | |
chmod +x ./GNU_MakeMacOS.sh | |
chmod +x ./BuildTools/BuildMacOSDebug.sh | |
chmod +x ./BuildTools/RunTestsMacOSDebug.sh | |
- name: Run Premake | |
run: ./GNU_MakeMacOS.sh | |
- name: Restore cached objs | |
id: cache-objs-restore | |
uses: actions/cache/restore@v3 | |
with: | |
path: ./Output | |
key: ${{ runner.os }}-cl-1 | |
- name: Build | |
run: ./BuildTools/BuildMacOSDebug.sh | |
- name: Save cached Objs | |
if: always() | |
id: cache-Objs-save | |
uses: actions/cache/save@v3 | |
with: | |
path: ./Output | |
key: ${{ steps.cache-objs-restore.outputs.cache-primary-key }} | |
- name: RunTests | |
run: ./BuildTools/RunTestsMacOSDebug.sh |