mirror of
https://github.com/Pithikos/C-Thread-Pool
synced 2024-11-22 13:41:18 +03:00
Merge pull request #117 from dunglas/ci/gha
ci: switch to GitHub Actions
This commit is contained in:
commit
c5ba1c0f64
@ -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
|
26
.github/workflows/tests.yml
vendored
Normal file
26
.github/workflows/tests.yml
vendored
Normal 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
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user