From 7345661d40849e0f8a95dae37fd11b08051a6ec9 Mon Sep 17 00:00:00 2001 From: CharlesThobe Date: Tue, 4 Jan 2022 10:42:42 +0200 Subject: [PATCH] testing github workflows --- .github/workflows/ci-linux.yml | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/ci-linux.yml diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml new file mode 100644 index 0000000..e125f09 --- /dev/null +++ b/.github/workflows/ci-linux.yml @@ -0,0 +1,46 @@ +name: CI (Linux) + +on: +# push: +# paths: +# - '.github/**' +# - '3rdparty/**' +# - 'hash/**' +# - 'scripts/**' +# - 'src/**' +# - 'CMakeLists.txt' +# - 'cmake_subdirs/**' +# pull_request: +# paths: +# - '.github/**' +# - '3rdparty/**' +# - 'hash/**' +# - 'scripts/**' +# - 'src/**' +# - 'CMakeLists.txt' +# - 'cmake_subdirs/**' + workflow_dispatch: + +jobs: + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Install dependencies + run: | + sudo apt update + sudo apt install -y build-essential ninja-build + - name: Build + run: | + cmake -G Ninja + ninja + - name: 'Get Previous tag' + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + with: + fallback: test + - uses: actions/upload-artifact@master + with: + name: chdman-linux-${{ steps.previoustag.outputs.tag }} + path: chdman +