diff --git a/.github/workflows/pull-request-ci.yml b/.github/workflows/pull-request-ci.yml new file mode 100644 index 0000000000..fc51290af9 --- /dev/null +++ b/.github/workflows/pull-request-ci.yml @@ -0,0 +1,49 @@ +name: pull request ci +on: [pull_request] +jobs: + linux: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + compiler: [g++, clang] + steps: + - name: Checkout last commit + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: "recursive" + + - name: Install dependency + run: ./action-install-linux.sh + + - name: Unit test + run: make test + macos: + runs-on: macos-latest + steps: + - name: Checkout last commit + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: "recursive" + + - name: Install dependency + run: ./action-install-macos.sh + + - name: Unit test + run: make xcode/test + windows: + runs-on: windows-latest + steps: + - name: Checkout last commit + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: "recursive" + + - name: Install dependency + run: .\action-install-windows.bat + + - name: Unit test + run: .\build.bat test