-
-
Notifications
You must be signed in to change notification settings - Fork 24
45 lines (40 loc) · 1.26 KB
/
build-linux.yml
File metadata and controls
45 lines (40 loc) · 1.26 KB
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
42
43
44
45
name: Build Node binaries for Linux
on:
workflow_dispatch:
inputs:
node:
description: "Node major version"
required: true
default: "22"
jobs:
linux-armv7:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
id: build
uses: docker/build-push-action@v6
with:
build-args: |
PKG_FETCH_OPTION_a=armv7
PKG_FETCH_OPTION_n=node${{ github.event.inputs.node }}
context: .
file: ./Dockerfile.linuxcross
platforms: linux/arm/v7
outputs: type=local, dest=dist
- name: Check if binary is compiled, skip if download only
id: check_file
run: |
ls -l dist
(test -f dist/*.sha256sum && echo "EXISTS=true" >> $GITHUB_OUTPUT) || echo "EXISTS=false" >> $GITHUB_OUTPUT
- name: Upload node binary to release
if: steps.check_file.outputs.EXISTS == 'true'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ github.token }}
file: dist/*
file_glob: true
tag: node${{ github.event.inputs.node }}
overwrite: true