From 60026c7d9d3cf120de318f16171ebd78c0a08917 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 PR-URL: https://github.com/nodejs/node/pull/31153 Reviewed-By: Christian Clauss Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig --- .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