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 authored and catalinii committed Jul 1, 2023
1 parent a9bbd6d commit 540fb6e
Show file tree
Hide file tree
Showing 13 changed files with 77 additions and 1,096 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
15 changes: 12 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install build essentials
run: |
apt-get -y update
apt-get -y install build-essential
DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential git clang
- name: Build all disabled
run: |
Expand All @@ -29,10 +29,19 @@ jobs:
- name: Install additional build dependencies
run: |
apt-get -y install libdvbcsa-dev libssl-dev
DEBIAN_FRONTEND=noninteractive 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
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: dependencies
run: sudo apt-get install -y -f libdvbcsa-dev libssl-dev
run: sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -f libdvbcsa-dev libssl-dev

- name: Autobuild
uses: github/codeql-action/autobuild@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install build dependencies
run: |
sudo apt-get -y install build-essential dpkg-dev libdvbcsa-dev libssl-dev debhelper-compat vdr-dev
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential dpkg-dev libdvbcsa-dev libssl-dev debhelper-compat vdr-dev
- name: Build Debian package
run: |
Expand Down
Loading

0 comments on commit 540fb6e

Please sign in to comment.