Debian Codegraph @

.github/workflows/Tests.yaml

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 name: Tests
2
3 on:
4 push:
5 branches: [ "**" ]
6 pull_request:
7 branches: [ "**" ]
8
9 jobs:
10 macos-tests:
11 runs-on: macos-latest
12
13 steps:
14 - uses: actions/checkout@v3
15
16 - name: Download & install SDL
17 run: |
18 curl -L -o SDL2.dmg https://github.com/libsdl-org/SDL/releases/download/release-2.24.2/SDL2-2.24.2.dmg
19 hdiutil attach SDL2.dmg
20 cp -r /Volumes/SDL2/SDL2.framework RecastDemo/Bin
21 hdiutil detach /Volumes/SDL2
22 rm SDL2.dmg
23
24 - name: Download & install premake
25 working-directory: RecastDemo
26 run: |
27 curl -L -o premake.tar.gz https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-macosx.tar.gz
28 tar -xzf premake.tar.gz
29 rm premake.tar.gz
30
31 - name: Run premake
32 working-directory: RecastDemo
33 run: ./premake5 xcode4
34
35 - name: Build Unit Tests With Xcode
36 working-directory: RecastDemo/Build/xcode4/
37 run: xcodebuild -scheme Tests -configuration Debug -project Tests.xcodeproj build
38
39 - name: Run unit tests
40 working-directory: RecastDemo/Bin
•41 run: ./Tests --verbosity high --success
42
43 linux-tests:
44 runs-on: ubuntu-latest
45
46 steps:
47 - uses: actions/checkout@v3
48
49 - name: Install opengl and SDL
50 run: |
51 sudo apt-get update
52 sudo apt-get install -y libgl1-mesa-dev libsdl2-dev
53
54 - name: Download & Install premake
55 working-directory: RecastDemo
56 run: |
57 curl -L -o premake.tar.gz https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-linux.tar.gz
58 tar -xzf premake.tar.gz
59 rm premake.tar.gz
60
61 - name: Run premake
62 working-directory: RecastDemo
63 run: ./premake5 --cc=clang gmake2
64
65 - name: Build
66 working-directory: RecastDemo/Build/gmake2
67 run: make config=debug verbose=true
68
69 - name: Run Tests
70 working-directory: RecastDemo/Bin
•71 run: ./Tests --verbosity high --success
72
73 windows-tests:
74 runs-on: windows-2022
75
76 steps:
77 - uses: actions/checkout@v3
78
79 - name: Add msbuild to PATH
80 uses: microsoft/[email protected]
81
82 - name: Download and Install SDL
83 working-directory: RecastDemo/Contrib
84 shell: pwsh
85 run: |
86 (new-object System.Net.WebClient).DownloadFile("https://github.com/libsdl-org/SDL/releases/download/release-2.24.2/SDL2-devel-2.24.2-VC.zip","${{github.workspace}}/RecastDemo/Contrib/SDL.zip")
87 tar -xf SDL.zip
88 ren SDL2-2.24.2 SDL
89 del SDL.zip
90
91 - name: Download and Install Premake
92 working-directory: RecastDemo
93 shell: pwsh
94 run: |
95 (new-object System.Net.WebClient).DownloadFile("https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-windows.zip","${{github.workspace}}/RecastDemo/premake.zip")
96 tar -xf premake.zip
97 del premake.zip
98
99 - name: Run Premake
100 working-directory: RecastDemo
101 run: ./premake5.exe vs2022
102
103 - name: Build
104 working-directory: RecastDemo/Build/vs2022
105 run: msbuild Tests.vcxproj -property:Configuration=Debug
106
107 - name: Run Tests
108 working-directory: RecastDemo/Bin/
•109 run: ./Tests.exe --verbosity high --success