mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 04:31:49 +02:00
In commit 7640d794 ("CI: Integrate Musl build into vtest.yml"), the
alpine job was integrated into VTest.yml. However, most of the task are
still duplicated and changes in the workflow need edits of copy/paste
code in two places because of that.
This commit deduplicates the code by making the alpine job part of the
matrix, like it was done for macOS.
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: 'setup VTest'
|
|
description: 'ssss'
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
|
|
- name: Setup coredumps
|
|
if: ${{ runner.os == 'Linux' }}
|
|
shell: sh
|
|
run: |
|
|
sudo mkdir -p /tmp/core
|
|
sudo sysctl fs.suid_dumpable=1
|
|
sudo sysctl kernel.core_pattern=/tmp/core/core.%h.%e.%t
|
|
|
|
- name: Setup ulimit for core dumps
|
|
shell: sh
|
|
run: |
|
|
# This is required for macOS which does not actually allow to increase
|
|
# the '-n' soft limit to the hard limit, thus failing to run.
|
|
ulimit -n 65536
|
|
ulimit -c unlimited
|
|
|
|
- name: Get VTest latest commit SHA
|
|
id: vtest-sha
|
|
shell: sh
|
|
run: |
|
|
echo "sha=$(git ls-remote https://code.vinyl-cache.org/vtest/VTest2 HEAD | cut -f1)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Cache VTest
|
|
id: cache-vtest
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: ${{ github.workspace }}/vtest
|
|
key: vtest-${{ runner.os }}-${{ runner.arch }}-${{ steps.vtest-sha.outputs.sha }}
|
|
|
|
- name: Install VTest
|
|
if: ${{ steps.cache-vtest.outputs.cache-hit != 'true' }}
|
|
shell: sh
|
|
run: |
|
|
DESTDIR=${{ github.workspace }}/vtest scripts/build-vtest.sh
|
|
|
|
- name: Install problem matcher for VTest
|
|
shell: sh
|
|
# This allows one to more easily see which tests fail.
|
|
run: echo "::add-matcher::.github/vtest.json"
|
|
|
|
|
|
|