Skip to content

ci: bump actions/checkout to v6 and upload-artifact to v7 #25

ci: bump actions/checkout to v6 and upload-artifact to v7

ci: bump actions/checkout to v6 and upload-artifact to v7 #25

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc gdb binutils build-essential autoconf libelf-dev libdwarf-dev libzstd-dev elfutils xfsprogs vmtouch
- name: Configure and build
run: |
./autogen.sh
./configure
make
- name: Setup test environment
run: |
# Try to set up XFS for better huge page testing
tests/setup_test_env.sh || true
- name: Run tests
run: |
cd tests
python3 test.py
- name: Run tdispatch alignment test
run: |
tests/test_tdispatch_alignment.sh
- name: Cleanup test environment
if: always()
run: |
# Clean up XFS if it was set up
if mountpoint -q /tmp/xfs_test_mount; then
sudo tests/setup_xfs_test.sh teardown || true
fi
- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: test-artifacts
path: |
tests/test1.exe
tests/test1_huge.exe
tests/libtest1.so
tests/libtest1_huge.so
tests/test_alignment
tests/test_alignment_huge