Skip to content

Commit

Permalink
Retired Node 16, added Node 21.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhop committed Oct 25, 2023
1 parent ea8df34 commit 808741d
Show file tree
Hide file tree
Showing 12 changed files with 56 additions and 77 deletions.
7 changes: 0 additions & 7 deletions .github/actions/linux-alpine-node-16/action.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine
FROM node:21-alpine

RUN apk add --no-cache python3 make gcc g++ linux-headers

Expand Down
7 changes: 7 additions & 0 deletions .github/actions/linux-alpine-node-21/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: 'Create a binary artifact for Node 21 on Alpine Linux'
description: 'Create a binary artifact for Node 21 on Alpine Linux using musl'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{inputs.node-version}}
15 changes: 0 additions & 15 deletions .github/actions/linux-node-12/Dockerfile

This file was deleted.

12 changes: 0 additions & 12 deletions .github/actions/linux-node-12/action.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/actions/linux-node-12/entrypoint.sh

This file was deleted.

6 changes: 6 additions & 0 deletions .github/actions/linux-node-21/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:21-buster

RUN apt install python3 make gcc g++

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
12 changes: 12 additions & 0 deletions .github/actions/linux-node-21/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Create a binary artifact for Node 21 on Linux'
description: 'Create a binary artifact for Node 21 on Linux using node:21-buster'
inputs:
node-version:
description: 'Node.js version'
required: false
default: '21'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{inputs.node-version}}
11 changes: 11 additions & 0 deletions .github/actions/linux-node-21/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

set -e

#npm config set unsafe-perm true
export USERNAME=`whoami`
export DEVELOPMENT_SKIP_GETTING_ASSET=true
npm i
npm run build --if-present
npm test
npm run save-to-github
42 changes: 18 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
strategy:
matrix:
os: [macOS-latest, windows-latest]
node-version: [16, 18, 20]
node-version: [18, 20, 21]

steps:
- uses: actions/checkout@v3
Expand All @@ -51,29 +51,23 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: npm run save-to-github

build-linux-centos7-node:
name: Node.js ${{matrix.node-version}} on CentOS 7
build-linux-node-18:
name: Node.js 18 on Debian Buster
needs: create-release
runs-on: ubuntu-latest
continue-on-error: true

strategy:
matrix:
node-version: [16]

steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install, test, and create artifact
uses: ./.github/actions/linux-node-12/
uses: ./.github/actions/linux-node-18/
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
node-version: ${{matrix.node-version}}

build-linux-node-18:
name: Node.js 18 on Debian Buster
build-linux-node-20:
name: Node.js 20 on Debian Buster
needs: create-release
runs-on: ubuntu-latest
continue-on-error: true
Expand All @@ -83,12 +77,12 @@ jobs:
with:
submodules: true
- name: Install, test, and create artifact
uses: ./.github/actions/linux-node-18/
uses: ./.github/actions/linux-node-20/
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

build-linux-node-20:
name: Node.js 20 on Debian Buster
build-linux-node-21:
name: Node.js 21 on Debian Buster
needs: create-release
runs-on: ubuntu-latest
continue-on-error: true
Expand All @@ -98,12 +92,12 @@ jobs:
with:
submodules: true
- name: Install, test, and create artifact
uses: ./.github/actions/linux-node-20/
uses: ./.github/actions/linux-node-21/
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

build-linux-alpine-node-16:
name: Node.js 16 on Alpine Linux
build-linux-alpine-node-18:
name: Node.js 18 on Alpine Linux
needs: create-release
runs-on: ubuntu-latest
continue-on-error: true
Expand All @@ -113,12 +107,12 @@ jobs:
with:
submodules: true
- name: Install, test, and create artifact
uses: ./.github/actions/linux-alpine-node-16/
uses: ./.github/actions/linux-alpine-node-18/
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

build-linux-alpine-node-18:
name: Node.js 18 on Alpine Linux
build-linux-alpine-node-20:
name: Node.js 20 on Alpine Linux
needs: create-release
runs-on: ubuntu-latest
continue-on-error: true
Expand All @@ -128,12 +122,12 @@ jobs:
with:
submodules: true
- name: Install, test, and create artifact
uses: ./.github/actions/linux-alpine-node-18/
uses: ./.github/actions/linux-alpine-node-20/
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

build-linux-alpine-node-20:
name: Node.js 20 on Alpine Linux
build-linux-alpine-node-21:
name: Node.js 21 on Alpine Linux
needs: create-release
runs-on: ubuntu-latest
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
node-version: [16, 18, 20]
node-version: [18, 20, 21]

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 808741d

Please sign in to comment.