Skip to content

refactor: use Mesa-style thread yielding and mutex #20

refactor: use Mesa-style thread yielding and mutex

refactor: use Mesa-style thread yielding and mutex #20

Workflow file for this run

name: Threading Library CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc make
- name: Show build information
run: make version
- name: Build threading library and tests
run: make build
- name: Run tests with system pthreads
run: |
echo "Testing with system pthreads"
make MY_PTHREADS=0 test
- name: Run tests with preemption
run: |
echo "Running tests with PREEMPT=1"
make clean
make test
- name: Run tests without preemption
run: |
echo "Running tests with PREEMPT=0"
make clean
make PREEMPT=0 test