forked from aquasecurity/tracee
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.28 KB
/
test-os-packaging-daily.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#
# Daily Test: Test generating OS packages
#
name: OS Packages
on:
workflow_dispatch: {}
schedule:
# Daily At 04:00
- cron: "0 4 * * *"
jobs:
packaging:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flavor: [
# llvm repository is broken for bionic
# {distro: ubuntu, version: bionic},
{ distro: ubuntu, version: focal },
{ distro: ubuntu, version: jammy },
{ distro: ubuntu, version: kinetic },
{ distro: fedora, version: 36 },
{ distro: fedora, version: 37 },
]
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: true
- name: Fetch Tags
run: |
git fetch --prune --unshallow --tags
- name: Install Dependencies
uses: ./.github/actions/build-dependencies
- name: "Build Package"
run: |
export GIT_TAG=${{steps.tagger.outputs.tag}}
script --return -c "make -f builder/Makefile.packaging ${{ matrix.flavor.distro }}-bin-${{ matrix.flavor.version }}"
find ./dist | grep -Eq "(deb|rpm)" && found=1
if [[ $found -ne 1 ]]; then
echo "Could not generate OS package, check errors"
exit 1
fi