From d2e75197634de2e2252fe49b70b3461b506bd15a Mon Sep 17 00:00:00 2001 From: Raphaƫl Zumer Date: Thu, 12 Dec 2019 15:23:57 -0500 Subject: Enable GitHub CI on pull request Also rename the build to be more specific. --- .github/workflows/build-ubuntu.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/ccppcmake.yml | 32 -------------------------------- 2 files changed, 32 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/build-ubuntu.yml delete mode 100644 .github/workflows/ccppcmake.yml (limited to '.github/workflows') diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml new file mode 100644 index 0000000..fc5bd90 --- /dev/null +++ b/.github/workflows/build-ubuntu.yml @@ -0,0 +1,32 @@ +name: CMake Build (Ubuntu x86-64) + +on: [push, pull_request] + +env: + BUILD_TYPE: Release + CMAKE_VERSION: 3.15.2 + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Install dependencies + shell: bash + working-directory: ${{runner.workspace}} + run: | # Fetch a new version of CMake, because the default is too old. + wget -nv https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz \ + && tar -zxf cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz \ + && sudo apt-get install gtk+-3.0 libcurl4-gnutls-dev libpcap0.8-dev libsdl2-dev + - name: Create build environment + run: mkdir ${{runner.workspace}}/build + - name: Configure + shell: bash + working-directory: ${{runner.workspace}}/build + run: ${{runner.workspace}}/cmake-$CMAKE_VERSION-Linux-x86_64/bin/cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + - name: Make + shell: bash + working-directory: ${{runner.workspace}}/build + run: make -j$(nproc --all) diff --git a/.github/workflows/ccppcmake.yml b/.github/workflows/ccppcmake.yml deleted file mode 100644 index 7cf4339..0000000 --- a/.github/workflows/ccppcmake.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: C/C++ CI with CMake - -on: [push] - -env: - BUILD_TYPE: Release - CMAKE_VERSION: 3.15.2 - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Install dependencies - shell: bash - working-directory: ${{runner.workspace}} - run: | # Fetch a new version of CMake, because the default is too old. - wget -nv https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz \ - && tar -zxf cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz \ - && sudo apt-get install gtk+-3.0 libcurl4-gnutls-dev libpcap0.8-dev libsdl2-dev - - name: Create build environment - run: mkdir ${{runner.workspace}}/build - - name: Configure - shell: bash - working-directory: ${{runner.workspace}}/build - run: ${{runner.workspace}}/cmake-$CMAKE_VERSION-Linux-x86_64/bin/cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE - - name: Make - shell: bash - working-directory: ${{runner.workspace}}/build - run: make -j$(nproc --all) -- cgit v1.2.3