Merge pull request #196 from Synesthesias/release/v2.0.1-alpha #1
This file contains hidden or 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}} | |
| 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/ssh-agent@v0.7.0 | |
| 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 |