Skip to content

Commit

Permalink
CI: Add linux-arm (v6, 32-bit)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Sep 24, 2023
1 parent 61c5cb4 commit efee9f1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,27 @@ jobs:
env:
prebuild_upload: ${{ secrets.GITHUB_TOKEN }}
run: npx prebuild
linux-arm:
permissions:
contents: write
name: linux-arm - Node.js 18 - prebuild
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2
with:
arch: armv6
distro: buster
env: |
nodejs_version: "18.17.0"
prebuild_upload: "${{ startsWith(github.ref, 'refs/tags/') && secrets.GITHUB_TOKEN || '' }}"
run: |
apt-get update
apt-get install -y fontconfig fonts-noto-core g++ git libatomic1 make python3 xz-utils
mkdir /opt/nodejs
curl --silent https://unofficial-builds.nodejs.org/download/release/v${nodejs_version}/node-v${nodejs_version}-linux-armv6l.tar.xz | tar xJC /opt/nodejs --strip-components=1
export PATH=$PATH:/opt/nodejs/bin
chown root.root .
npm install --build-from-source
npx mocha --no-config --spec=test/unit/io.js
[[ -n $prebuild_upload ]] && npx prebuild || true

0 comments on commit efee9f1

Please sign in to comment.