Skip to content

Commit

Permalink
Use clang for arm/x86 with static binary and zig cc for mips #1107
Browse files Browse the repository at this point in the history
  • Loading branch information
Catalin Toda committed Jun 21, 2023
1 parent a9bbd6d commit 36ce298
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 1,010 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Binaries
on:
push:
branches: [ master ]
branches: [ master, next ]
pull_request:
branches: [ master ]
branches: [ master, next ]

jobs:
build:
Expand All @@ -16,29 +16,29 @@ jobs:
fetch-depth: '0'
- name: Build x64
run: |
./configure --enable-static
./configure --enable-static CC="clang -static" --disable-netcv
make DDCI=1
zip -9 -r /minisatip_x64.zip minisatip html
- name: Build ARM
run: |
make clean
./configure --enable-static --host=arm-linux-gnueabihf
./configure --disable-netcv --enable-static --host=arm-linux-gnueabihf CC="clang -target arm-linux-gnueabihf -static"
make
zip -9 -r /minisatip_arm.zip minisatip html
- name: Build AXE
run: |
make clean
./configure --disable-dvbapi --enable-static --host=sh4-linux --disable-dvbaes --disable-dvbca --enable-axe
./configure --disable-netcv --disable-dvbapi --enable-static --host=sh4-linux --disable-dvbaes --disable-dvbca --enable-axe
make PMT=0
zip -9 -r /minisatip_axe.zip minisatip html
- name: Build MIPS
run: |
make clean
./configure --enable-static --host=mipsel-tuxbox-linux-gnu
make
./configure --disable-netcv --enable-static --host=mipsel-linux-gnu CC="zig cc -target mipsel-linux-gnueabihf.2.34 -static"
make EXTRA_CFLAGS="-I/sysroot/mipsel/include -L/sysroot/mipsel/lib" EMBEDDED=1
zip -9 -r /minisatip_mips.zip minisatip html
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,28 @@ jobs:
- name: Install build essentials
run: |
apt-get -y update
apt-get -y install build-essential
apt-get -y install build-essential git
- name: Build all disabled
run: |
./configure --disable-linuxdvb --disable-dvbca --disable-dvbcsa --disable-netcv --disable-satipc --disable-dvbapi
make
- name: Install additional build dependencies
- name: Install additional build dependencies clang
run: |
apt-get -y install libdvbcsa-dev libssl-dev
apt-get -y install libdvbcsa-dev libssl-dev zlib1g-dev libxml2-dev
git clone https://github.com/vdr-projects/libnetceiver/
cd libnetceiver/ && make install
cd ..
- name: Build all enabled
run: |
make clean
./configure --enable-linuxdvb --enable-dvbca --enable-dvbcsa --enable-netcv --enable-satipc --enable-dvbapi --enable-axe
./configure --enable-linuxdvb --enable-dvbca --enable-dvbcsa --enable-netcv --enable-dvbapi --enable-axe
make
- name: Build clang
run: |
make clean
./configure --enable-linuxdvb --enable-dvbca --enable-dvbcsa --enable-netcv --enable-dvbapi --enable-axe CC=clang
make
Loading

0 comments on commit 36ce298

Please sign in to comment.