diff options
author | Manuel Bentele | 2021-03-02 12:02:07 +0100 |
---|---|---|
committer | Manuel Bentele | 2021-03-02 12:02:07 +0100 |
commit | b536d0cfc03799da8d12b530adb08be8875ae72b (patch) | |
tree | 137b16c796e1347f668348045fc01ca6fc7ce7dc | |
parent | Add support for AlmaLinux 8 (diff) | |
download | xloop-b536d0cfc03799da8d12b530adb08be8875ae72b.tar.gz xloop-b536d0cfc03799da8d12b530adb08be8875ae72b.tar.xz xloop-b536d0cfc03799da8d12b530adb08be8875ae72b.zip |
Add build support for Github actions
-rw-r--r-- | .github/workflows/build.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8de93a6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,43 @@ +name: Build xloop + +on: + push: + branches: + - master + pull_request: + release: + +jobs: + build: + strategy: + fail-fast: false + matrix: + config: + - name: debug [default] on Ubuntu 20.04 + build-os: ubuntu-20.04 + build-type: "Debug" + - name: release [default] on Ubuntu 20.04 + build-os: ubuntu-20.04 + build-type: "Release" + name: Build xloop ${{ matrix.config.name }} + runs-on: ${{ matrix.config.build-os }} + steps: + - name: Install xloop dependencies + run: | + sudo apt-get update -y -qq + sudo apt-get install -y -qq make \ + linux-headers-generic \ + libcap-dev \ + rpm + - name: Checkout xloop repository + uses: actions/checkout@v2 + - name: Fetch xloop repository tags + run: git fetch --prune --unshallow + - name: Configure xloop build + run: | + cmake -B ${{ github.workspace }}/build \ + -S ${{ github.workspace }} \ + -D CMAKE_BUILD_TYPE=${{ matrix.config.build-type }} + - name: Build xloop artifacts + working-directory: ${{ github.workspace }}/build + run: make |