Merge pull request #117 from dunglas/ci/gha

ci: switch to GitHub Actions
This commit is contained in:
Manos 2023-12-18 14:09:57 +01:00 committed by GitHub
commit c5ba1c0f64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 40 deletions

View File

@ -1,4 +0,0 @@
FROM ubuntu
RUN apt-get update && \
apt-get -y install gcc valgrind time python

View File

@ -1,4 +0,0 @@
Build and push container
docker build -t pithikos/test-c-thread-pool .
docker push pithikos/test-c-thread-pool

View File

@ -1,31 +0,0 @@
version: 2.1
jobs:
test-normal-compile:
docker:
- image: pithikos/test-c-thread-pool
steps:
- checkout
- run:
name: Test
no_output_timeout: 2h
command: |
cd tests/
./normal_compile.sh
test-optimized-compile:
docker:
- image: pithikos/test-c-thread-pool
steps:
- checkout
- run:
name: Test
no_output_timeout: 2h
command: |
cd tests/
./optimized_compile.sh
workflows:
test:
jobs:
- test-normal-compile
- test-optimized-compile

26
.github/workflows/tests.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Tests
on:
push:
pull_request:
jobs:
test-normal-compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Valgrind
run: sudo apt-get install -y valgrind
- name: Run tests with standard compilation flags
working-directory: tests/
run: ./normal_compile.sh
test-optimized-compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Valgrind
run: sudo apt-get install -y valgrind
- name: Run tests with optimized compilation flags
working-directory: tests/
run: ./optimized_compile.sh

View File

@ -1,4 +1,4 @@
[![CircleCI](https://circleci.com/gh/Pithikos/C-Thread-Pool.svg?style=svg)](https://circleci.com/gh/Pithikos/C-Thread-Pool)
[[![GitHub Actions](https://github.com/Pithikos/C-Thread-Pool/workflows/tests/badge.svg?branch=master)](https://github.com/api-platform/core/actions?query=workflow%3Atests+branch%3Amaster)
# C Thread Pool