ci: switch to GitHub Actions
This commit is contained in:
parent
b2827e9960
commit
78336465c8
|
@ -1,4 +0,0 @@
|
||||||
FROM ubuntu
|
|
||||||
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get -y install gcc valgrind time python
|
|
|
@ -1,4 +0,0 @@
|
||||||
Build and push container
|
|
||||||
|
|
||||||
docker build -t pithikos/test-c-thread-pool .
|
|
||||||
docker push pithikos/test-c-thread-pool
|
|
|
@ -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
|
|
|
@ -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
|
|
@ -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
|
# C Thread Pool
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue