Merge pull request #3 from anadav/fix/gitignore-inline-comments #16
This file contains hidden or 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: Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gcc gdb binutils build-essential libelf-dev libdwarf-dev libzstd-dev elfutils xfsprogs vmtouch | |
| - name: Configure and build | |
| run: | | |
| ./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@v4 | |
| 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 |