This repository was archived by the owner on Oct 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.45 KB
/
Test_windows.yml
File metadata and controls
49 lines (43 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Engine tests Windows
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
workflow_dispatch:
env:
BUILD_TYPE: Release
LIBRARIES_VERSION: 1
jobs:
Test_windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download libraries
run: |
Invoke-WebRequest -OutFile "libraries.exe" -Uri "https://api.creative-rift.com/api/download?platform=windows&v=${{env.LIBRARIES_VERSION}}&p=installer"
.\libraries.exe > out.txt
xcopy.exe /E /I .\libraries\${{env.LIBRARIES_VERSION}}\ .\libraries\
- name: Config tests
run: |
cd module\tests
xcopy.exe ..\..\libraries\${{env.BUILD_TYPE}}\*.dll .\${{env.BUILD_TYPE}}\
xcopy.exe ..\..\libraries\config.yaml .\${{env.BUILD_TYPE}}\
mkdir build
cd build
cmake -B ${{github.workspace}}\module\tests\build -G"Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ..
ls ${{github.workspace}}\module\tests\${{env.BUILD_TYPE}}
- name: Build tests
run: |
cd ${{github.workspace}}\module\tests\build
cmake --build ${{github.workspace}}\module\tests\build --config ${{env.BUILD_TYPE}}
- name: Run tests
run: |
cd ${{github.workspace}}\module\tests\${{env.BUILD_TYPE}}
ls
.\SWEngine-tests.exe