Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Default Clang Build Job to GitHub Actions CI #10

Merged
merged 1 commit into from
Nov 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 73 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,50 +22,97 @@
# integration configuration file for connman.
#

---

name: "Build"

on: [push, pull_request]

jobs:

clang:
name: "clang/LLVM ${{matrix.configuration['name']}} w/ ${{matrix.firewall['name']}} Firewall"
runs-on: ubuntu-20.04
strategy:
matrix:
configuration:
- { name: "Debug", options: "--enable-debug --disable-optimization" }
- { name: "Release", options: "--disable-debug" }
firewall:
- { name: "IP Tables", type: "iptables", packages: "libxtables-dev" }
- { name: "NF Tables", type: "nftables", packages: "libnftables-dev libnftnl-dev" }
env:
CC: clang
steps:

- name: "Install Job Package Dependencies"
run: |
sudo apt-get update
sudo apt-get --no-install-recommends install -y clang

- name: "Install connman Package Dependencies"
run: |
sudo apt-get -y install autoconf automake libtool libdbus-1-dev libglib2.0-dev libgnutls28-dev libmnl-dev libopenconnect-dev libreadline-dev openconnect openvpn ppp-dev vpnc ${{matrix.firewall['packages']}}

- name: "Checkout"
uses: actions/checkout@v3.5.3

- name: "Bootstrap and Configure"
run: |
./bootstrap-configure -C ${{matrix.configuration['options']}} --with-firewall=${{matrix.firewall['type']}}

- name: "Build"
run: |
make -j

- name: "Test"
run: |
make -j check

- name: "Distribution"
run: |
make -j dist

gcc:
name: "GCC ${{matrix.configuration['name']}} w/ ${{matrix.firewall['name']}} Firewall"
runs-on: ubuntu-22.04

strategy:
matrix:
configuration:
- { name: "Debug", options: "--enable-debug --disable-optimization" }
- { name: "Release", options: "--disable-debug" }
firewall:
- { name: "IP Tables", type: "iptables", packages: "libxtables-dev" }
- { name: "NF Tables", type: "nftables", packages: "libmnl-dev libnftables-dev" }
- { name: "Debug", options: "--enable-debug --disable-optimization" }
- { name: "Release", options: "--disable-debug" }
firewall:
- { name: "IP Tables", type: "iptables", packages: "libxtables-dev" }
- { name: "NF Tables", type: "nftables", packages: "libnftables-dev libnftnl-dev" }
env:
CC: gcc
steps:

- name: "Install Job Package Dependencies"
run: |
sudo apt-get update
sudo apt-get --no-install-recommends install -y gcc
- name: "Install Job Package Dependencies"
run: |
sudo apt-get update
sudo apt-get --no-install-recommends install -y gcc

- name: "Install connman Package Dependencies"
run: |
sudo apt-get -y install autoconf automake libtool libdbus-1-dev libglib2.0-dev libgnutls28-dev libreadline-dev ppp-dev ${{matrix.firewall['packages']}}
- name: "Install connman Package Dependencies"
run: |
sudo apt-get -y install autoconf automake libtool libdbus-1-dev libglib2.0-dev libgnutls28-dev libmnl-dev libopenconnect-dev libreadline-dev openconnect openvpn ppp-dev vpnc ${{matrix.firewall['packages']}}

- name: "Checkout"
uses: actions/checkout@v3.5.3
- name: "Checkout"
uses: actions/checkout@v3.5.3

- name: "Bootstrap and Configure"
run: |
./bootstrap-configure -C ${{matrix.configuration['options']}} --with-firewall=${{matrix.firewall['type']}}
- name: "Bootstrap and Configure"
run: |
./bootstrap-configure -C ${{matrix.configuration['options']}} --with-firewall=${{matrix.firewall['type']}}

- name: "Build"
run: |
make -j
- name: "Build"
run: |
make -j

- name: "Test"
run: |
make -j check
- name: "Test"
run: |
make -j check

- name: "Distribution"
run: |
make -j dist
- name: "Distribution"
run: |
make -j dist