From 94bb5d56a35f63d5d396d53dbee613ffaf7feda9 Mon Sep 17 00:00:00 2001 From: Bambooin Date: Sun, 12 Dec 2021 21:00:43 +0800 Subject: [PATCH] feat(ci): add pull request ci --- .github/workflows/pull-request-ci.yml | 49 +++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/pull-request-ci.yml 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