Skip to content

Commit

Permalink
feat: update to node 14
Browse files Browse the repository at this point in the history
  • Loading branch information
inian committed Jul 21, 2021
1 parent 063ac90 commit c72d37d
Show file tree
Hide file tree
Showing 6 changed files with 1,429 additions and 545 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '12.18.1'
node-version: '14.17.0'
- uses: actions/cache@v2
with:
path: ~/.npm
Expand All @@ -46,7 +46,7 @@ jobs:
run: |
npm ci
npm run build
npm run pkg -- --targets node12-linux-x64,node12-macos-x64 --out-path bin
npm run pkg -- --targets node14-linux-x64,node14-macos-x64 --out-path bin
mv bin/server-macos storage-api-macos-x86_64
mv bin/server-linux storage-api-x86_64
cp node_modules/fs-xattr/build/Release/xattr.node .
Expand Down Expand Up @@ -111,18 +111,15 @@ jobs:
install: |
apt-get update -y
apt-get -y install --no-install-recommends curl wget ca-certificates python3 build-essential
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
. ~/.nvm/nvm.sh
nvm install 12.18.1
mkdir -p ~/.pkg-cache/v2.6
wget https://github.com/robertsLando/pkg-binaries/releases/download/v1.0.0/fetched-v12.18.1-linux-arm64 -O fetched-v12.18.1-linux-arm64
mv fetched-v12.18.1-linux-arm64 ~/.pkg-cache/v2.6
nvm install 14.17.0
run: |
. ~/.nvm/nvm.sh
npm ci
npm run build
cp node_modules/fs-xattr/build/Release/xattr.node .
npm run pkg -- --targets node12-linux-arm64 --output storage-api-aarch64
npm run pkg -- --targets node14-linux-arm64 --output storage-api-aarch64
tar -czvf storage-api-aarch64.tar.gz storage-api-aarch64 migrations/ xattr.node
cp storage-api-aarch64.tar.gz /artifacts/storage-api-aarch64.tar.gz
- name: Upload binaries to release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-18.04]
node: ['12']
node: ['14']

runs-on: ${{ matrix.platform }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-18.04]
node: ['12']
node: ['14']

runs-on: ${{ matrix.platform }}

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mhart/alpine-node:12
FROM mhart/alpine-node:14

# Install packages
WORKDIR /app
Expand Down
Loading

0 comments on commit c72d37d

Please # to comment.