From a89da12d26c91b2f8fc3ad5363627da8e02d2c34 Mon Sep 17 00:00:00 2001 From: Eugene Lazutkin Date: Wed, 23 Aug 2023 12:02:05 -0500 Subject: [PATCH] Reverted back non-working changes. --- .github/actions/linux-alpine-node/Dockerfile | 7 ---- .github/actions/linux-alpine-node/action.yml | 12 ------ .../actions/linux-alpine-node/entrypoint.sh | 12 ------ .github/workflows/build.yml | 39 +++++++++++++++---- 4 files changed, 32 insertions(+), 38 deletions(-) delete mode 100644 .github/actions/linux-alpine-node/Dockerfile delete mode 100644 .github/actions/linux-alpine-node/action.yml delete mode 100755 .github/actions/linux-alpine-node/entrypoint.sh diff --git a/.github/actions/linux-alpine-node/Dockerfile b/.github/actions/linux-alpine-node/Dockerfile deleted file mode 100644 index 1ddf3c8..0000000 --- a/.github/actions/linux-alpine-node/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -ARG NODE_VERSION=20 -FROM node:${NODE_VERSION}-alpine - -RUN apk add --no-cache python3 make gcc g++ linux-headers - -COPY entrypoint.sh /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] diff --git a/.github/actions/linux-alpine-node/action.yml b/.github/actions/linux-alpine-node/action.yml deleted file mode 100644 index d35c619..0000000 --- a/.github/actions/linux-alpine-node/action.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: 'Create a binary artifact for Node on Alpine Linux' -description: 'Create a binary artifact for Node on Alpine Linux using musl' -inputs: - node-version: - description: 'Node.js version' - required: true - default: '20' -runs: - using: 'docker' - image: 'Dockerfile' - buildArgs: | - NODE_VERSION=${{inputs.node_version}} diff --git a/.github/actions/linux-alpine-node/entrypoint.sh b/.github/actions/linux-alpine-node/entrypoint.sh deleted file mode 100755 index a895f6e..0000000 --- a/.github/actions/linux-alpine-node/entrypoint.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -npm config set unsafe-perm true - -set -e - -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 f9db9f6..81e05a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -102,22 +102,47 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - build-linux-alpine: - name: Node.js ${{matrix.node-version}} on Alpine Linux + build-linux-alpine-node-16: + name: Node.js 16 on Alpine Linux needs: create-release runs-on: ubuntu-latest + continue-on-error: true - strategy: - matrix: - node-version: [16, 18, 20] + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - name: Install, test, and create artifact + uses: ./.github/actions/linux-alpine-node-16/ + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + build-linux-alpine-node-18: + name: Node.js 18 on Alpine Linux + needs: create-release + runs-on: ubuntu-latest + continue-on-error: true steps: - uses: actions/checkout@v3 with: submodules: true - name: Install, test, and create artifact - uses: ./.github/actions/linux-alpine-node/ + uses: ./.github/actions/linux-alpine-node-18/ + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + build-linux-alpine-node-20: + name: Node.js 20 on Alpine Linux + needs: create-release + runs-on: ubuntu-latest + continue-on-error: true + + steps: + - uses: actions/checkout@v3 with: - node-version: ${{matrix.node-version}} + submodules: true + - name: Install, test, and create artifact + uses: ./.github/actions/linux-alpine-node-20/ env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}