ci: switch to GitHub Actions

This commit is contained in:
Kévin Dunglas 2022-12-19 21:36:19 +01:00
parent b2827e9960
commit 78336465c8
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6
5 changed files with 20 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

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

@ -0,0 +1,19 @@
name: Tests
on:
push:
pull_request:
jobs:
test-normal-compile:
runs-on: ubuntu-latest
steps:
- name: Run tests with standard compilation flags
working-directory: tests/
run: ./normal_compile.sh
test-optimized-compile:
runs-on: ubuntu-latest
steps:
- 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