-
-
Notifications
You must be signed in to change notification settings - Fork 82
37 lines (31 loc) · 1.2 KB
/
binaries-manual-mips.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
name: Binaries-manual-MIPS
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: goto-bus-stop/setup-zig@v2
- name: Install build tools and dependencies
run: DEBIAN_FRONTEND=noninteractive sudo apt-get -y install zip
- name: Build MIPS-MUSL
run: |
./configure --disable-netcv --enable-static --host=mipsel-linux-musl CC="zig cc -target mipsel-linux-musl -static -Wno-error=date-time"
make EXTRA_CFLAGS="-I/sysroot/mipsel/include -L/sysroot/mipsel/lib" EMBEDDED=1
zip -9 -r /tmp/minisatip_mips-musl.zip minisatip html
- name: Build MIPS-GNU
run: |
make clean
./configure --disable-netcv --enable-static --host=mipsel-linux-gnu CC="zig cc -target mipsel-linux-gnueabihf.2.30 -static -Wno-error=date-time"
make EXTRA_CFLAGS="-I/sysroot/mipsel/include -L/sysroot/mipsel/lib" EMBEDDED=1
zip -9 -r /tmp/minisatip_mips-gnu.zip minisatip html
- name: Archive built binaries
uses: actions/upload-artifact@v4
with:
name: minisatip
path: |
/tmp/minisatip_mips-musl.zip
/tmp/minisatip_mips-gnu.zip