-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (63 loc) · 1.52 KB
/
merged.yaml
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
66
67
name: Merged
on:
push:
branches:
- master
jobs:
ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
target:
[
bionic_x64,
bionic_arm64,
bionic_armhf,
focal_x64,
focal_arm64,
focal_armhf,
jammy_x64,
jammy_arm64,
jammy_armhf,
noble_x64,
noble_arm64,
noble_armhf,
]
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
TARGET=${{ matrix.target }}
DIST=(${TARGET//_/ })
ln -s packaging/${DIST[0]} debian
ls -l
cd ..
chmod 777 $PWD
chmod 777 $PWD/nugu-epd
echo "Build debian package"
docker run -t --rm --privileged -v $PWD:$PWD -w $PWD/nugu-epd \
-v /var/lib/schroot/chroots \
nugulinux/buildenv:${{ matrix.target }} sbuild.sh
ls -l
sudo mv *.deb nugu-epd/
- name: Upload build artifacts to action
uses: actions/upload-artifact@v4
with:
name: deb-${{ matrix.target }}
path: ./*.deb
build_mac:
runs-on: macos-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
mkdir build && cd build
cmake ..
make -j3
DESTDIR=tmp make install