CMakeで例外処理を有効化 (#261) #1749
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| |
# Github Actions で自動テストを行う方法を記述したものです。 | |
name: Build and Test | |
on: push | |
env: | |
BUILD_TYPE: RelWithDebInfo | |
# BUILD_TYPE: Debug | |
jobs: | |
build-and-test: | |
runs-on: ${{matrix.os}} | |
env: | |
KEY_TO_ACCESS_FBXSDK: ${{ secrets.KEY_TO_ACCESS_FBXSDK }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: windows-2022 | |
arch: x86_64 | |
- os: macos-14 | |
arch: arm64 | |
- os: ubuntu-20.04 | |
arch: x86_64 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 1 | |
- name: Add SSH private keys for submodule repositories | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: | | |
${{ env.KEY_TO_ACCESS_FBXSDK }} | |
- name: Build | |
uses: ./.github/actions/build | |
with: | |
shell_type: ${{ (runner.os == 'Windows' && 'powershell') || 'bash' }} | |
visual_studio_version: "17 2022" | |
arch: ${{matrix.arch}} | |
- 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 |