mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-02 12:03:51 +00:00
windows unit testing
-removed the other 2 platforms just for now
This commit is contained in:
parent
9020d42d7c
commit
a4a77ee68a
4 changed files with 30 additions and 194 deletions
76
.github/workflows/build-linux-gcc.yml
vendored
76
.github/workflows/build-linux-gcc.yml
vendored
|
|
@ -1,76 +0,0 @@
|
|||
name: Linux Build GCC
|
||||
on:
|
||||
push:
|
||||
branches: [development]
|
||||
pull_request:
|
||||
branches: [development]
|
||||
env:
|
||||
build_type: "Release"
|
||||
cc: "gcc"
|
||||
cxx: "g++"
|
||||
|
||||
concurrency:
|
||||
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
build-linux:
|
||||
if: github.repository == 'TorqueGameEngines/Torque3D'
|
||||
name: Linux Ubuntu Latest GCC
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Print env
|
||||
run: |
|
||||
echo github.event.action: ${{ github.event.action }}
|
||||
echo github.event_name: ${{ github.event_name }}
|
||||
|
||||
- name: Setup GCC problem matcher
|
||||
uses: ammaraskar/gcc-problem-matcher@master
|
||||
|
||||
- name: Install Linux Dependencies
|
||||
run: |
|
||||
sudo apt-get update && \
|
||||
sudo apt-get install -y \
|
||||
build-essential \
|
||||
nasm \
|
||||
libogg-dev \
|
||||
libxft-dev \
|
||||
libx11-dev \
|
||||
libxxf86vm-dev \
|
||||
libopenal-dev \
|
||||
libfreetype6-dev \
|
||||
libxcursor-dev \
|
||||
libxinerama-dev \
|
||||
libxi-dev \
|
||||
libxrandr-dev \
|
||||
libxss-dev \
|
||||
libglu1-mesa-dev \
|
||||
libgtk-3-dev
|
||||
|
||||
- name: Configure Build & Install
|
||||
uses: ashutoshvarma/action-cmake-build@v1
|
||||
with:
|
||||
build-dir: ${{github.workspace}}/build
|
||||
# will set the CC & CXX for cmake
|
||||
cc: ${{env.cc}}
|
||||
cxx: ${{env.cxx}}
|
||||
build-type: ${{env.build_type}}
|
||||
# Extra options pass to cmake while configuring project
|
||||
configure-options: -DTORQUE_APP_NAME=Torque3D -DTORQUE_TESTING=ON
|
||||
# install the build using cmake --install
|
||||
install-build: true
|
||||
# run build using '-j [parallel]' to use multiple threads to build
|
||||
parallel: 14
|
||||
|
||||
- name: Unit Tests
|
||||
shell: bash
|
||||
run: |
|
||||
cd "${{github.workspace}}/My Projects/Torque3D/game"
|
||||
./Torque3D runTests.tscript
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: ./.github/actions/upload-artifact
|
||||
with:
|
||||
name: torque3dLinuxGCCUnitTest
|
||||
Loading…
Add table
Add a link
Reference in a new issue