-
-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (39 loc) · 1.25 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build armv7
on:
workflow_dispatch:
inputs:
node:
description: 'Node major version'
required: true
default: '16'
jobs:
apk:
runs-on: rpi4
timeout-minutes: 9999
if: github.actor == 'robertsLando'
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: "Build armv7 node${{ github.event.inputs.node }} linux"
timeout-minutes: 9999
id: build
run: |
CACHE=./pkg-cache/custom # custom cache folder
rm -rf $CACHE/built-*
mkdir -p $CACHE
export PKG_CACHE_PATH=$CACHE
export PKG_IGNORE_TAG=true # prevents pkg-fetch to add a tag folder
# fix error nodejs 18: selected processor does not support `yield' in ARM mode
export CXXFLAG="-march=native -mcpu=native"
npx @yao-pkg/pkg-fetch -n node${{ github.event.inputs.node }}
- name: Upload node binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ github.token }}
file: ./pkg-cache/custom/built-*
file_glob: true
tag: node${{ github.event.inputs.node }}
overwrite: true