-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (37 loc) · 1.2 KB
/
build-and-test.yml
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
50
# Github Actions で自動テストを行う方法を記述したものです。
name: Build and Test
on: push
env:
BUILD_TYPE: RelWithDebInfo
# BUILD_TYPE: Debug
jobs:
build-and-test:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [windows-2022, macos-latest, ubuntu-20.04]
steps:
- uses: actions/checkout@v3
- name: Add SSH private keys for submodule repositories
uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.KEY_TO_ACCESS_FBXSDK }}
- name: checkout submodules
shell: bash
run: git submodule update --init --recursive
- name: Build
uses: ./.github/actions/build
with:
shell_type: ${{ (runner.os == 'Windows' && 'powershell') || 'bash' }}
visual_studio_version: "17 2022"
- name: Run Test
run: |
cd ${{github.workspace}}/out/build/x64-Release-Unity/bin
./plateau_test
- name: Run Test of C# Wrapper
run: |
cd ${{github.workspace}}/wrappers/csharp/LibPLATEAU.NET
dotnet test -p:Configuration=Release -p:Platform="Any CPU" --verbosity normal ${{github.workspace}}/wrappers/csharp/LibPLATEAU.NET