Skip to content

Commit

Permalink
pkg: fix github ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Oct 5, 2024
1 parent 6527838 commit 86986f0
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x

Expand All @@ -34,20 +34,39 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [12.x, 14.x, 16.x, 18.x]
include:
- name: "Older ubuntu with Node.js 12"
os: ubuntu-20.04
node-version: 12.x
- name: "Older ubuntu with Node.js 14"
os: ubuntu-20.04
node-version: 14.x
- name: "Latest ubuntu with Node.js 16"
os: ubuntu-latest
node-version: 16.x
- name: "Latest ubuntu with Node.js 16"
os: ubuntu-latest
node-version: 18.x

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Install libunbound
if: contains(matrix.os, 'ubuntu')
run: sudo apt-get update && sudo apt-get install -y libunbound-dev
run: |
sudo apt-get update
sudo apt-get install -y libunbound-dev
- name: Setup Python 2.7
if: matrix.node == '12.x' || matrix.node == '14.x'
run: |
sudo apt-get update
sudo apt-get install -y python2.7
npm config set python python2.7
- name: Install dependencies
run: npm install
Expand Down

0 comments on commit 86986f0

Please sign in to comment.