From b767e3e90280a1222fc4404cbd4c832342c9382d Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Thu, 14 Sep 2023 19:37:40 +0530 Subject: [PATCH] Switch from Travis CI to GitHub Actions The free Travis bits stopped working ages ago, let's try out GitHub's Actions support as a replacement. Just a simple build + test without extra deps to start with. --- .github/workflows/build-test.yml | 25 +++++++++++++++++++++++++ .travis.yml | 21 --------------------- 2 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/build-test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..325539c --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,25 @@ +name: onak build test + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build + + - name: Build + run: cmake --build ${{github.workspace}}/build + + - name: Test + working-directory: ${{github.workspace}}/build + run: ctest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cec8f00..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: c -dist: bionic -compiler: - - clang - - gcc -git: - depth: false -addons: - apt: - packages: - - cmake - - libdb-dev - - libcurl4-gnutls-dev - - libpq-dev - - libsystemd-dev - - nettle-dev -before_script: - - mkdir travis-build - - cd travis-build - - cmake .. -script: make && make test -- 2.39.5