From 405b3141034fbc0292027e5e4341bd34a859b584 Mon Sep 17 00:00:00 2001 From: pixl Date: Sun, 12 Jul 2020 20:14:55 -0400 Subject: [PATCH] Add GitHub Actions --- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c2c32ea --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: release-ci +on: + push: + types: + - tags + workflow_dispatch: + +jobs: + job: + name: ${{ matrix.os }}-release + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + include: + - os: ubuntu-latest + triplet: x64-linux + installDependencies: 'sudo apt-get update -m && sudo apt-get install libconfig++-dev libevdev-dev libudev-dev' + + steps: + - uses: actions/checkout@v1 + with: + submodules: true + - name: Install dependencies + run: '${{ matrix.installDependencies }}' + - name: Run CMake+Make + uses: lukka/run-cmake@v2 + id: runcmake + with: + cmakeGenerator: 'UnixMakefiles' + cmakeListsOrSettingsJson: 'CMakeListsTxtBasic' + cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' + cmakeAdditionalArgs: '-DFORCE_BUILD_HIDPP=True' + buildWithCMakeArgs: '-- -v' + cmakeBuildType: 'Release' + buildDirectory: '${{ runner.workspace }}/build/'