From c315dbef1e3248a40534607f2bbdaad3ae96a111 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Thu, 2 Jan 2020 20:28:54 +0800 Subject: [PATCH] src: add build Github Action --- .github/workflows/CI.yml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 00000000000000..47b59836300086 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,43 @@ +name: CI + +on: [push, pull_request] + +jobs: + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: 13.x + - name: Environment Information + run: npx envinfo + - name: Build + run: ./configure && make -j2 + build-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: 13.x + - name: Environment Information + run: npx envinfo + - name: Install deps + run: choco install nasm + - name: Build + run: ./vcbuild.bat + build-macOS: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: 13.x + - name: Environment Information + run: npx envinfo + - name: Build + run: ./configure && make -j8