From 78336465c83440f614e3068259f96a31e44a1444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Mon, 19 Dec 2022 21:36:19 +0100 Subject: [PATCH] ci: switch to GitHub Actions --- .circleci/Dockerfile | 4 ---- .circleci/README.md | 4 ---- .circleci/config.yml | 31 ------------------------------- .github/workflows/tests.yml | 19 +++++++++++++++++++ README.md | 2 +- 5 files changed, 20 insertions(+), 40 deletions(-) delete mode 100644 .circleci/Dockerfile delete mode 100644 .circleci/README.md delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/tests.yml diff --git a/.circleci/Dockerfile b/.circleci/Dockerfile deleted file mode 100644 index 5b3193c..0000000 --- a/.circleci/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM ubuntu - -RUN apt-get update && \ - apt-get -y install gcc valgrind time python diff --git a/.circleci/README.md b/.circleci/README.md deleted file mode 100644 index fa77c85..0000000 --- a/.circleci/README.md +++ /dev/null @@ -1,4 +0,0 @@ -Build and push container - - docker build -t pithikos/test-c-thread-pool . - docker push pithikos/test-c-thread-pool diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index f26b575..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..86b383b --- /dev/null +++ b/.github/workflows/tests.yml @@ -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 diff --git a/README.md b/README.md index fc4eb55..43bc7ea 100644 --- a/README.md +++ b/README.md @@ -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