2023-07-14 02:44:13 +02:00
|
|
|
name: valgrind
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
2023-09-18 18:19:51 +09:00
|
|
|
uses: actions/checkout@v4
|
2023-07-14 02:44:13 +02:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Install packages
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y automake autoconf libtool valgrind
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
autoreconf -i
|
|
|
|
./configure \
|
|
|
|
--disable-docs \
|
|
|
|
--with-oniguruma=builtin
|
|
|
|
make -j"$(nproc)"
|
|
|
|
file ./jq
|
|
|
|
- name: Test
|
|
|
|
run: |
|
2023-07-22 08:56:29 +09:00
|
|
|
make check VERBOSE=yes
|
2023-07-14 02:44:13 +02:00
|
|
|
git diff --exit-code
|
|
|
|
- name: Upload Test Logs
|
|
|
|
if: ${{ failure() }}
|
2024-01-09 09:33:26 +09:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-07-14 02:44:13 +02:00
|
|
|
with:
|
|
|
|
name: test-logs-valgrind-linux
|
|
|
|
retention-days: 7
|
|
|
|
path: |
|
|
|
|
test-suite.log
|
|
|
|
tests/*.log
|