diff --git a/.github/actions/linux-alpine-node-16/action.yml b/.github/actions/linux-alpine-node-16/action.yml deleted file mode 100644 index 4cc82d8..0000000 --- a/.github/actions/linux-alpine-node-16/action.yml +++ /dev/null @@ -1,7 +0,0 @@ -name: 'Create a binary artifact for Node 16 on Alpine Linux' -description: 'Create a binary artifact for Node 16 on Alpine Linux using musl' -runs: - using: 'docker' - image: 'Dockerfile' - args: - - ${{inputs.node-version}} diff --git a/.github/actions/linux-alpine-node-16/Dockerfile b/.github/actions/linux-alpine-node-21/Dockerfile similarity index 86% rename from .github/actions/linux-alpine-node-16/Dockerfile rename to .github/actions/linux-alpine-node-21/Dockerfile index 9dc7e02..b58b7e8 100644 --- a/.github/actions/linux-alpine-node-16/Dockerfile +++ b/.github/actions/linux-alpine-node-21/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine +FROM node:21-alpine RUN apk add --no-cache python3 make gcc g++ linux-headers diff --git a/.github/actions/linux-alpine-node-21/action.yml b/.github/actions/linux-alpine-node-21/action.yml new file mode 100644 index 0000000..f0eac4d --- /dev/null +++ b/.github/actions/linux-alpine-node-21/action.yml @@ -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}} diff --git a/.github/actions/linux-alpine-node-16/entrypoint.sh b/.github/actions/linux-alpine-node-21/entrypoint.sh similarity index 100% rename from .github/actions/linux-alpine-node-16/entrypoint.sh rename to .github/actions/linux-alpine-node-21/entrypoint.sh diff --git a/.github/actions/linux-node-12/Dockerfile b/.github/actions/linux-node-12/Dockerfile deleted file mode 100644 index f3167a4..0000000 --- a/.github/actions/linux-node-12/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -FROM centos:centos7 - -RUN yum install -y centos-release-scl && \ - INSTALL_PKGS="devtoolset-8 python3 make git" && \ - yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \ - rpm -V $INSTALL_PKGS && \ - yum -y clean all --enablerepo='*' - # && \ - # source scl_source enable devtoolset-8 && \ - # source scl_source enable python3 - -ENV PATH=/opt/rh/devtoolset-8/root/usr/bin:$PATH - -COPY entrypoint.sh /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] diff --git a/.github/actions/linux-node-12/action.yml b/.github/actions/linux-node-12/action.yml deleted file mode 100644 index 888f096..0000000 --- a/.github/actions/linux-node-12/action.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: 'Create a binary artifact for Node > 10 on Linux' -description: 'Create a binary artifact for Node > 10 on Linux using CentOS7 and glibc 2.17' -inputs: - node-version: - description: 'Node.js version' - required: false - default: '12' -runs: - using: 'docker' - image: 'Dockerfile' - args: - - ${{inputs.node-version}} diff --git a/.github/actions/linux-node-12/entrypoint.sh b/.github/actions/linux-node-12/entrypoint.sh deleted file mode 100755 index 8edc650..0000000 --- a/.github/actions/linux-node-12/entrypoint.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -l - -set -e - -NVM_DIR=$HOME/.nvm - -curl -sS -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" - -nvm install --no-progress $1 - -npm config set unsafe-perm true -export DEVELOPMENT_SKIP_GETTING_ASSET=true -npm i -npm run build --if-present -npm test -npm run save-to-github diff --git a/.github/actions/linux-node-21/Dockerfile b/.github/actions/linux-node-21/Dockerfile new file mode 100644 index 0000000..5d127bf --- /dev/null +++ b/.github/actions/linux-node-21/Dockerfile @@ -0,0 +1,6 @@ +FROM node:21-buster + +RUN apt install python3 make gcc g++ + +COPY entrypoint.sh /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/.github/actions/linux-node-21/action.yml b/.github/actions/linux-node-21/action.yml new file mode 100644 index 0000000..c00cf4e --- /dev/null +++ b/.github/actions/linux-node-21/action.yml @@ -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}} diff --git a/.github/actions/linux-node-21/entrypoint.sh b/.github/actions/linux-node-21/entrypoint.sh new file mode 100755 index 0000000..43c3ed9 --- /dev/null +++ b/.github/actions/linux-node-21/entrypoint.sh @@ -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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 81e05a7..01fbeeb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5cc5bdf..a7a808b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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