Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

patches: add Node.js 16.0.0 #123

Merged
merged 5 commits into from
Apr 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/build-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target-node: [8, 10, 12, 14]
target-node: [10, 12, 14, 16]
target-arch: [x64, arm64]
include:
- target-arch: x64
Expand Down Expand Up @@ -41,7 +41,13 @@ jobs:
run: |
tar xvf ../out.tar root/pkg-fetch/dist

- name: Check if binary is compiled
id: check_file
run: |
(test -f root/pkg-fetch/dist/*.sha256sum && echo ::set-output name=EXISTS::true) || echo ::set-output name=EXISTS::false

- uses: actions/upload-artifact@v2
if: steps.check_file.outputs.EXISTS == 'true'
with:
name: node${{ matrix.target-node }}-alpine-${{ matrix.target-arch }}
path: root/pkg-fetch/dist/*
18 changes: 15 additions & 3 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target-node: [8, 10, 12, 14]
target-node: [10, 12, 14, 16]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -39,7 +39,13 @@ jobs:
run: |
tar xvf ../out.tar root/pkg-fetch/dist

- name: Check if binary is compiled
id: check_file
run: |
(test -f root/pkg-fetch/dist/*.sha256sum && echo ::set-output name=EXISTS::true) || echo ::set-output name=EXISTS::false

- uses: actions/upload-artifact@v2
if: steps.check_file.outputs.EXISTS == 'true'
with:
name: node${{ matrix.target-node }}-linux-x64
path: root/pkg-fetch/dist/*
Expand All @@ -50,7 +56,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target-node: [8, 10, 12, 14]
target-node: [10, 12, 14, 16]

steps:
- uses: actions/checkout@v2
Expand All @@ -65,7 +71,7 @@ jobs:

- run: yarn install

- run: yarn start --force-build --node-range node${{ matrix.target-node }} --arch arm64 --output dist
- run: yarn start --node-range node${{ matrix.target-node }} --arch arm64 --output dist
env:
CC: /usr/bin/aarch64-linux-gnu-gcc-8
CXX: /usr/bin/aarch64-linux-gnu-g++-8
Expand All @@ -79,7 +85,13 @@ jobs:
NM_host: /usr/bin/nm
READELF_host: /usr/bin/readelf

- name: Check if binary is compiled
id: check_file
run: |
(test -f dist/*.sha256sum && echo ::set-output name=EXISTS::true) || echo ::set-output name=EXISTS::false

- uses: actions/upload-artifact@v2
if: steps.check_file.outputs.EXISTS == 'true'
with:
name: node${{ matrix.target-node }}-linux-arm64
path: dist/*
8 changes: 7 additions & 1 deletion .github/workflows/build-linuxstatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target-node: [8, 10, 12, 14]
target-node: [10, 12, 14, 16]
target-arch: [x64, arm64]
include:
- target-arch: x64
Expand Down Expand Up @@ -41,7 +41,13 @@ jobs:
run: |
tar xvf ../out.tar root/pkg-fetch/dist

- name: Check if binary is compiled
id: check_file
run: |
(test -f root/pkg-fetch/dist/*.sha256sum && echo ::set-output name=EXISTS::true) || echo ::set-output name=EXISTS::false

- uses: actions/upload-artifact@v2
if: steps.check_file.outputs.EXISTS == 'true'
with:
name: node${{ matrix.target-node }}-linuxstatic-${{ matrix.target-arch }}
path: root/pkg-fetch/dist/*
10 changes: 8 additions & 2 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target-node: [8, 10, 12, 14]
target-node: [10, 12, 14, 16]

steps:
- uses: actions/checkout@v2
Expand All @@ -26,9 +26,15 @@ jobs:

- run: yarn install

- run: yarn start --force-build --node-range node${{ matrix.target-node }} --output dist
- run: yarn start --node-range node${{ matrix.target-node }} --output dist

- name: Check if binary is compiled
id: check_file
run: |
(test -f dist/*.sha256sum && echo ::set-output name=EXISTS::true) || echo ::set-output name=EXISTS::false

- uses: actions/upload-artifact@v2
if: steps.check_file.outputs.EXISTS == 'true'
with:
name: node${{ matrix.target-node }}-macos-x64
path: dist/*
20 changes: 16 additions & 4 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target-node: [8, 10, 12]
target-node: [10, 12]
target-arch: [x64]

steps:
Expand All @@ -29,11 +29,17 @@ jobs:

- run: choco install nasm

- run: yarn start --force-build --node-range node${{ matrix.target-node }} --arch ${{ matrix.target-arch }} --output dist
- run: yarn start --node-range node${{ matrix.target-node }} --arch ${{ matrix.target-arch }} --output dist
env:
PKG_BUILD_PATH: build

- name: Check if binary is compiled
id: check_file
run: |
if (Test-Path -Path dist\\*.sha256sum -PathType Leaf) { echo "::set-output name=EXISTS::true" } else { echo "::set-output name=EXISTS::false" }

- uses: actions/upload-artifact@v2
if: steps.check_file.outputs.EXISTS == 'true'
with:
name: node${{ matrix.target-node }}-windows-${{ matrix.target-arch }}
path: dist\\*
Expand All @@ -44,7 +50,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target-node: [14]
target-node: [14, 16]
target-arch: [x64, arm64]

steps:
Expand All @@ -59,9 +65,15 @@ jobs:

- run: choco install nasm

- run: yarn start --force-build --node-range node${{ matrix.target-node }} --arch ${{ matrix.target-arch }} --output dist
- run: yarn start --node-range node${{ matrix.target-node }} --arch ${{ matrix.target-arch }} --output dist

- name: Check if binary is compiled
id: check_file
run: |
if (Test-Path -Path dist\\*.sha256sum -PathType Leaf) { echo "::set-output name=EXISTS::true" } else { echo "::set-output name=EXISTS::false" }

- uses: actions/upload-artifact@v2
if: steps.check_file.outputs.EXISTS == 'true'
with:
name: node${{ matrix.target-node }}-windows-${{ matrix.target-arch }}
path: dist\\*
2 changes: 1 addition & 1 deletion Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ COPY . ./

RUN yarn install

RUN yarn start --force-build --arch $PKG_FETCH_OPTION_a --node-range $PKG_FETCH_OPTION_n --platform $PKG_FETCH_OPTION_p --output dist
RUN yarn start --arch $PKG_FETCH_OPTION_a --node-range $PKG_FETCH_OPTION_n --platform $PKG_FETCH_OPTION_p --output dist
2 changes: 1 addition & 1 deletion Dockerfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ RUN npm install -g yarn

RUN yarn install

RUN yarn start --force-build --node-range $PKG_FETCH_OPTION_n --output dist
RUN yarn start --node-range $PKG_FETCH_OPTION_n --output dist
Loading