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++'