From 994daf8bfdbad7a4ecc41ab00d608da1b6444791 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 19 Sep 2026 15:48:52 -0400 Subject: [PATCH] Adding workflow --- .gitea/workflows/klist.yml | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .gitea/workflows/klist.yml diff --git a/.gitea/workflows/klist.yml b/.gitea/workflows/klist.yml new file mode 100644 index 0000000..0c5d337 --- /dev/null +++ b/.gitea/workflows/klist.yml @@ -0,0 +1,63 @@ +name: klist + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-26.04 + + steps: + - uses: actions/checkout@v6 + + - name: Cache Conan dependencies + uses: actions/cache@v3 + with: + path: ~/.conan/data # Or your custom cache directory + key: ${{ runner.os }}-conan-${{ hashFiles('**/conanfile.*') }} + restore-keys: | + ${{ runner.os }}-conan- + + - name: Create tmp folder + run: mkdir tmp + + - name: Install Conan and other dependencies + working-directory: tmp + run: | + sudo apt update + sudo apt install -y cmake + cmake --version + + wget https://github.com/conan-io/conan/releases/download/2.32.0/conan-2.32.0-amd64.deb + sudo dpkg -i conan-2.32.0-amd64.deb + + - name: Configure Conan + run: | + conan profile detect --force # Create a default profile + + - name: Create build directory + run: mkdir build + + - name: Install dependencies + working-directory: build + run: conan install .. --build=missing + + - name: build project + working-directory: build + run: | + source Release/generators/conanbuild.sh + cmake .. --preset conan-release + cmake --build Release + + - name: Test with CTest (optional) + working-directory: build/Release + run: ctest -C Release + +