From 61e3918c91f47b0ba123c6f168157be1a70d7916 Mon Sep 17 00:00:00 2001 From: pedrofale Date: Tue, 9 Jan 2024 13:42:58 +0000 Subject: [PATCH] Replace circleCI with github actions --- .../config.yml => .github/workflows/build.yml | 36 +++++++------------ 1 file changed, 12 insertions(+), 24 deletions(-) rename .circleci/config.yml => .github/workflows/build.yml (65%) diff --git a/.circleci/config.yml b/.github/workflows/build.yml similarity index 65% rename from .circleci/config.yml rename to .github/workflows/build.yml index 8cdfa96..ed6abcb 100644 --- a/.circleci/config.yml +++ b/.github/workflows/build.yml @@ -1,31 +1,19 @@ -version: 2 +name: build + +on: + push: + pull_request: jobs: build: - docker: - - image: "ubuntu:20.04" + runs-on: ubuntu-latest steps: - - run: apt-get -qq update; apt-get -y install git - - checkout - - run: - name: Installing SUDO - command: | - apt-get update - apt-get install -y sudo - rm -rf /var/lib/apt/lists/* - - run: - name: Installing software-properties-common - command: | - sudo apt-get update - export DEBIAN_FRONTEND=noninteractive - apt-get install -y tzdata - sudo apt-get -y install software-properties-common - - run: - name: Install Python - command: 'sudo -E add-apt-repository -y ppa:deadsnakes/ppa && apt-get update && sudo apt-get -y install build-essential python3' - - run: - name: Install Python utilities - command: 'sudo apt-get install -y python3-dev python3-pip && python3 -m pip install pip --upgrade' + - name: Checkout repository + uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' - run: name: Installing GCC command: 'apt-get update && apt-get install -y gcc g++'