chore: add CI workflow, Makefile, README, and C/Python benchmark source files
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
# retoor <retoor@molodetz.nl>
|
||||
|
||||
name: Build and Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-c:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential libssl-dev valgrind
|
||||
|
||||
- name: Build
|
||||
run: make
|
||||
|
||||
- name: Build debug
|
||||
run: make debug
|
||||
|
||||
valgrind:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-c
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential libssl-dev valgrind
|
||||
|
||||
- name: Run valgrind memory tests
|
||||
run: make valgrind
|
||||
|
||||
build-python:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
run: make py-install
|
||||
|
||||
- name: Test Python version
|
||||
run: make py-test
|
||||
Reference in New Issue
Block a user