-
Notifications
You must be signed in to change notification settings - Fork 48
65 lines (54 loc) · 1.71 KB
/
Copy pathci.yml
File metadata and controls
65 lines (54 loc) · 1.71 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: ci
on:
push:
branches: [master]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
- name: ESLint
run: |
npm install --no-package-lock --no-audit --no-fund
npx eslint .
- name: Shell script syntax
run: |
bash -n build.sh build_addon.sh build_release_body.sh build_change_history.sh
for f in addon_files/update_script addon_files/redmatic/bin/redmatic \
addon_files/redmatic/bin/redmaticLoader addon_files/redmatic/bin/redmaticVersions \
addon_files/redmatic/bin/checkContext addon_files/redmatic/bin/monit-start \
addon_files/redmatic/bin/monit-du addon_files/redmatic/bin/redmatic-logupload; do
sh -n "$f"
done
- name: JavaScript syntax
run: |
for f in addon_files/redmatic/lib/*.js update_change_history.js alpine-packages.mjs; do
node --check "$f"
done
build:
needs: check
runs-on: ubuntu-latest
strategy:
matrix:
arch: [armv7l, aarch64, x86_64]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
- name: Install patchelf
if: matrix.arch == 'armv7l'
run: sudo apt-get update && sudo apt-get install -y patchelf
- name: Build addon package
run: |
mkdir -p dist
./build_addon.sh ${{ matrix.arch }}
- uses: actions/upload-artifact@v5
with:
name: redmatic-${{ matrix.arch }}
path: dist/*
retention-days: 14