GeezerVison is showing github.com — src: add build Github Action · nodejs/node@60942cc
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +43Lines changed: 43 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +jobs: |
| 6 | + build-linux: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + steps: |
| 9 | + - uses: actions/checkout@v2 |
| 10 | + - name: Use Node.js ${{ matrix.node-version }} |
| 11 | + uses: actions/setup-node@v1 |
| 12 | + with: |
| 13 | + node-version: 13.x |
| 14 | + - name: Environment Information |
| 15 | + run: npx envinfo |
| 16 | + - name: Build |
| 17 | + run: ./configure && make -j2 |
| 18 | + build-windows: |
| 19 | + runs-on: windows-latest |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v2 |
| 22 | + - name: Use Node.js ${{ matrix.node-version }} |
| 23 | + uses: actions/setup-node@v1 |
| 24 | + with: |
| 25 | + node-version: 13.x |
| 26 | + - name: Environment Information |
| 27 | + run: npx envinfo |
| 28 | + - name: Install deps |
| 29 | + run: choco install nasm |
| 30 | + - name: Build |
| 31 | + run: ./vcbuild.bat |
| 32 | + build-macOS: |
| 33 | + runs-on: macOS-latest |
| 34 | + steps: |
| 35 | + - uses: actions/checkout@v2 |
| 36 | + - name: Use Node.js ${{ matrix.node-version }} |
| 37 | + uses: actions/setup-node@v1 |
| 38 | + with: |
| 39 | + node-version: 13.x |
| 40 | + - name: Environment Information |
| 41 | + run: npx envinfo |
| 42 | + - name: Build |
| 43 | + run: ./configure && make -j8 |