Skip to content
Open
Show file tree
Hide file tree
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
29 changes: 29 additions & 0 deletions .github/actions/basic/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Basic setup'
description: 'Set up pdns build'
inputs:
cache-key-base:
description: cache key base
required: true

runs:
using: "composite"
steps:
- name: add problem matchers
uses: ./.github/actions/problem-matchers
- name: get timestamp for cache
id: get-stamp
run: |
: get timestamp for cache
echo "stamp=$(/bin/date +%s)" >> "$GITHUB_OUTPUT"
shell: bash
working-directory: .
- name: make ccache directory
shell: bash
run: mkdir -p ~/.ccache
working-directory: .
- name: let GitHub cache our ccache data
uses: actions/cache@v4
with:
path: ~/.ccache
key: ${{ inputs.cache-key-base }}-${{ steps.get-stamp.outputs.stamp }}
restore-keys: ${{ inputs.cache-key-base }}
11 changes: 11 additions & 0 deletions .github/actions/normalize-branch-name/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Normalize branch name'
description: 'Normalize branch name'

runs:
using: "composite"
steps:
- name: normalize branch name
shell: bash
run: |
: Normalize branch name
echo "normalized-branch-name=$BRANCH_NAME" | tr "/" "-" >> "$GITHUB_ENV"
22 changes: 22 additions & 0 deletions .github/actions/pip-build-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Install pip build dependencies'
description: 'Install pip build dependencies'

inputs:
venv-parent:
description: venv parent
required: true
working-directory:
description: working directory

runs:
using: "composite"
steps:
- name: install pip build dependencies
shell: bash
run: |
: install pip build dependencies
python3 -m venv ${VENV_PARENT}/.venv
. ${VENV_PARENT}/.venv/bin/activate && pip install -r ${VENV_PARENT}/meson/requirements.txt
env:
VENV_PARENT: ${{ inputs.venv-parent }}
working-directory: ${{ inputs.working-directory }}
12 changes: 12 additions & 0 deletions .github/actions/problem-matchers/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Define problem matchers'
description: 'Set up problem matchers'

runs:
using: "composite"
steps:
- name: add problem matchers
working-directory: .
shell: bash
run: |
: Add problem matchers
echo "::add-matcher::$GITHUB_WORKSPACE/.github/actions/problem-matchers/basic.json"
109 changes: 109 additions & 0 deletions .github/actions/problem-matchers/basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"problemMatcher": [
{
"owner": "pdns-compilation-fatal-error",
"severity": "error",
"pattern": [
{
"regexp": "^\\s*(?:\\.\\./)*(\\S+):(\\d+):(\\d+): (?:fatal |)error: (.*)",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
]
},
{
"owner": "pdns-compilation-error",
"severity": "error",
"pattern": [
{
"regexp": "(?:(?:^| )\\.\\.|-git\\d+)/([^:]+):(\\d+):(\\d+): error: (.*)",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
]
},
{
"owner": "pdns-error",
"severity": "error",
"pattern": [
{
"regexp": "(?<![\":]|: |network )\\berror:([^'].*)",
"message": 1
}
]
},
{
"owner": "pdns-python-test",
"severity": "error",
"pattern": [
{
"regexp": "\bFAILED (test_.*?\\.py)::.* - (\\w+Error: .*)",
"file": 1,
"message": 2
}
]
},
{
"owner": "pdns-swagger",
"severity": "error",
"pattern": [
{
"regexp": "(docs/http-api/swagger/.*\\.yaml)$",
"file": 1
},
{
"regexp": "(\\d+):(\\d+) error \\w+-\\w+ (.*)",
"line": 1,
"column": 2,
"message": 3
}
]
},
{
"owner": "pdns-sanitizers",
"severity": "error",
"pattern": [
{
"regexp": "==ERROR: (\\w+Sanitizer:.*)",
"message": 1
}
]
},
{
"owner": "pdns-ld",
"severity": "error",
"pattern": [
{
"regexp": "/usr/bin/ld:.*: (undefined reference.*)",
"message": 1
}
]
},
{
"owner": "pdns-test-error",
"severity": "error",
"pattern": [
{
"regexp": "^(\\w+\\.py):(\\d+): (\\w+Error)",
"file": 1,
"line": 2,
"message": 3
}
]
},
{
"owner": "curl",
"severity": "error",
"pattern": [
{
"regexp": "^\\s+(curl: \\(\\d+\\).*)",
"message": 1
}
]
}
]
}
Loading
Loading