Skip to content

Commit

Permalink
actions UPDATE deb package build action
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Mar 18, 2024
1 parent f6a5592 commit cbb3061
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ jobs:
# no expect because stdout seems to be redirected
packages: "libcmocka-dev shunit2",
snaps: "",
make-prepend: "",
make-target: ""
build-cmd: "make"
}
- {
name: "Release, clang",
Expand All @@ -39,8 +38,7 @@ jobs:
packager: "sudo apt-get",
packages: "libcmocka-dev shunit2",
snaps: "",
make-prepend: "",
make-target: ""
build-cmd: "make"
}
- {
name: "Debug, gcc",
Expand All @@ -51,8 +49,7 @@ jobs:
packager: "sudo apt-get",
packages: "libcmocka-dev valgrind shunit2",
snaps: "",
make-prepend: "",
make-target: ""
build-cmd: "make"
}
- {
name: "Debug, clang",
Expand All @@ -64,8 +61,7 @@ jobs:
# no valgrind because it does not support DWARF5 yet generated by clang 14
packages: "libcmocka-dev shunit2",
snaps: "",
make-prepend: "",
make-target: ""
build-cmd: "make"
}
- {
name: "Release, macOS 11, clang",
Expand All @@ -76,8 +72,7 @@ jobs:
packager: "brew",
packages: "cmocka shunit2",
snaps: "",
make-prepend: "",
make-target: ""
build-cmd: "make"
}
- {
name: "ASAN and UBSAN",
Expand All @@ -88,8 +83,7 @@ jobs:
packager: "sudo apt-get",
packages: "libcmocka-dev",
snaps: "",
make-prepend: "",
make-target: ""
build-cmd: "make"
}
- {
name: "ABI Check",
Expand All @@ -100,12 +94,22 @@ jobs:
packager: "sudo apt-get",
packages: "libcmocka-dev abi-dumper abi-compliance-checker",
snaps: "core universal-ctags",
make-prepend: "",
make-target: "abi-check"
build-cmd: "make abi-check"
}
- {
name: "DEB Package",
os: "ubuntu-22.04",
build-type: "Release",
cc: "gcc",
options: "",
packager: "sudo apt-get",
packages: "python3-pip",
snaps: "",
build-cmd: "pip install apkg && apkg system-setup && apkg build && apkg install"
}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@main

- name: Deps-packages
shell: bash
Expand Down Expand Up @@ -138,14 +142,15 @@ jobs:
mkdir build
cd build
CC=${{ matrix.config.cc }} cmake -DCMAKE_BUILD_TYPE=${{ matrix.config.build-type }} ${{ matrix.config.options }} ..
if: ${{ matrix.config.name != 'DEB Package' }}

- name: Build
shell: bash
working-directory: ${{ github.workspace }}/build
run: |
export LC_ALL=C.UTF-8
export PATH=/snap/bin:${{ github.workspace }}/coverity-tools/bin:$PATH
${{ matrix.config.make-prepend }} make ${{ matrix.config.make-target }}
${{ matrix.config.build-cmd }}
- name: Test
shell: bash
Expand Down

0 comments on commit cbb3061

Please sign in to comment.