Skip to content

Commit

Permalink
Added linux tests action
Browse files Browse the repository at this point in the history
  • Loading branch information
nadult committed Nov 25, 2023
1 parent 2881b80 commit ed354ee
Showing 1 changed file with 36 additions and 17 deletions.
53 changes: 36 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,48 @@ jobs:
shell: cmd
run: '"%MSBUILD_PATH%\MSBuild.exe" windows\libfwk.vcxproj /p:Platform=x64 /p:Configuration=Debug'

- name: Build test_window
- name: Build tests
shell: cmd
run: '"%MSBUILD_PATH%\MSBuild.exe" windows\test_window.vcxproj /p:Platform=x64 /p:Configuration=Debug'
run: |
"%MSBUILD_PATH%\MSBuild.exe" windows\test_window.vcxproj /p:Platform=x64 /p:Configuration=Debug
"%MSBUILD_PATH%\MSBuild.exe" windows\test_stuff.vcxproj /p:Platform=x64 /p:Configuration=Debug
"%MSBUILD_PATH%\MSBuild.exe" windows\test_geom.vcxproj /p:Platform=x64 /p:Configuration=Debug
"%MSBUILD_PATH%\MSBuild.exe" windows\test_math.vcxproj /p:Platform=x64 /p:Configuration=Debug
- name: Build test_stuff
- name: Run tests
shell: cmd
run: '"%MSBUILD_PATH%\MSBuild.exe" windows\test_stuff.vcxproj /p:Platform=x64 /p:Configuration=Debug'
run: |
build\test_stuff-x64-Debug\test_stuff.exe
build\test_math-x64-Debug\test_math.exe
- name: Build test_geom
shell: cmd
run: '"%MSBUILD_PATH%\MSBuild.exe" windows\test_geom.vcxproj /p:Platform=x64 /p:Configuration=Debug'
- name: Build test_math
shell: cmd
run: '"%MSBUILD_PATH%\MSBuild.exe" windows\test_math.vcxproj /p:Platform=x64 /p:Configuration=Debug'
test-linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

- name: Test stuff
shell: cmd
run: '"build\test_stuff-x64-Debug\test_stuff.exe"'
- name: Install Dependencies
run: |
git submodule update --init
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get install libsdl2-dev libfreetype-dev libvorbis-dev libogg-dev libopenal-dev libdwarf-dev libelf-dev
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
sudo apt update
sudo apt install libvulkan-dev shaderc glslang-dev vulkan-headers
- name: Test math
shell: cmd
run: '"build\test_math-x64-Debug\test_math.exe"'
- name: Build libfwk
run: |
make -j8 lib
- name: Build tests & tools
run: |
make -j8 tests tools
- name: Run tests
run: |
tests/stuff
tests/math
check-formatting:
Expand All @@ -88,4 +107,4 @@ jobs:
- name: Check C++ formatting
run: |
python tools/format.py -c
python tools/format.py -c

0 comments on commit ed354ee

Please sign in to comment.