-
Notifications
You must be signed in to change notification settings - Fork 46
45 lines (43 loc) · 1.48 KB
/
test-arm7.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
42
43
44
45
name: Test ARM7
on:
workflow_dispatch:
jobs:
test-arm7:
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- run: sudo apt-get update
- run: sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16
- run: npm install --ignore-scripts
- run: npm run build-js
- run: npm run prebuildify
env:
PREBUILD_ARCH: arm
PREBUILD_ARMV: 7
CC: arm-linux-gnueabihf-gcc
CXX: arm-linux-gnueabihf-g++
- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
with:
arch: armv7
distro: ubuntu20.04
# Not required, but speeds up builds by storing container images in
# a GitHub package registry.
githubToken: ${{ github.token }}
# Set an output parameter `uname` for use in subsequent steps
install: |
apt-get update
apt-get install -y curl libatomic1 python3 gcc g++ make
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 16
run: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
node_modules/.bin/mocha test/**.test.js --recursive