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
…1123)

Co-authored-by: Catalin Toda <[email protected]>
  • Loading branch information
catalinii and Catalin Toda authored Jul 15, 2023
1 parent 8d33e93 commit 89ffd78
Show file tree
Hide file tree
Showing 13 changed files with 75 additions and 1,095 deletions.
12 changes: 6 additions & 6 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,14 +16,14 @@ 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
Expand All @@ -36,8 +36,8 @@ jobs:
- 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,12 +29,21 @@ 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
- name: Build with --enable-axe, without libssl-dev
Expand Down
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 89ffd78

Please sign in to comment.