hyperscan: print database infor is called inside kernel, it may not b… #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DKMS-ubuntu22 | |
on: [push] | |
jobs: | |
build: | |
runs-on: [self-hosted, ubuntu-22-04] | |
container: | |
image: harbor.p.gc.onl/ddos/linux-builder-jammy:main | |
credentials: | |
username: ${{ secrets.HARBOR_USERNAME }} | |
password: ${{ secrets.HARBOR_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: prepare sources | |
run: | | |
rm -rf debian | |
cp -r debian.dkms debian | |
- name: make dkms source package | |
run: | | |
fakeroot debian/rules binary | |
mv ../sifter-rex-dkms*_all.deb . | |
# The package contains only sources. Let's check that it's buildable, | |
# and no surprising errors apeear in the build log. | |
- name: install kernel | |
run: | | |
apt-get update | |
apt-get install -y --no-install-recommends \ | |
linux-image-unsigned-6.1.39-sifter-generic \ | |
linux-headers-6.1.39-sifter-generic \ | |
linux-headers-6.1.39-sifter | |
- name: build module with dkms | |
run: | | |
apt-get install -y ./sifter-rex-dkms_*_all.deb \ | |
|| ( find /var/lib/dkms -name make.log -exec cat '{}' \; && false ) | |
- name: gather binary artifacts | |
run: | | |
mkdir artifacts | |
find /var/lib/dkms \ | |
-type f \( -name '*.log' -o -name '*.ko' \) \ | |
-exec cp '{}' artifacts/ \; | |
- name: upload binary artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: binary_module | |
path: artifacts/* | |
if-no-files-found: error | |
- name: upload package artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: package | |
path: sifter-rex-dkms*_all.deb | |
if-no-files-found: error | |
publish: | |
runs-on: [self-hosted, ubuntu-22-04] | |
needs: [build] | |
if: github.ref_name == 'main' || github.ref_name == 'main-next' | |
steps: | |
- name: Get Secrets | |
uses: hashicorp/[email protected] | |
id: secrets | |
with: | |
url: https://puppet-vault.gc.onl | |
token: ${{ secrets.VAULT_TOKEN }} | |
secrets: | | |
secret/responsible_backend/pulp-key private_key | key ; | |
- uses: actions/download-artifact@v4 | |
with: | |
name: package | |
- name: send to repo | |
uses: appleboy/scp-action@master | |
with: | |
host: ed-v-gcrepos-1.fe.gc.onl | |
username: cdn_ops | |
key: ${{ steps.secrets.outputs.key }} | |
port: 2200 | |
source: "sifter-rex-dkms*_all.deb" | |
target: "nosign/gcdn_nosign/ubuntu_jammy" |