From 527910864112a4301223c443b13a5e0b40b1c684 Mon Sep 17 00:00:00 2001 From: Robear Selwans Date: Sat, 2 May 2026 11:02:25 +0300 Subject: [PATCH] Added actions testing --- .gitea/workflows/run_tests.yaml | 31 +++++++++++++++++++++++++++++++ build_options/meson-clang-linux | 10 +++++----- 2 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 .gitea/workflows/run_tests.yaml diff --git a/.gitea/workflows/run_tests.yaml b/.gitea/workflows/run_tests.yaml new file mode 100644 index 0000000..0b9e55f --- /dev/null +++ b/.gitea/workflows/run_tests.yaml @@ -0,0 +1,31 @@ +name: Run tests +run-name: ${{ gitea.actor }} confirming that tests pass +on: [push] + +jobs: + Run tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install LLVM + run: | + wget https://apt.llvm.org/llvm.sh + chmod +x llvm.sh + sudo ./llvm.sh + sudo apt-get update + - uses: actions/setup-python@v6 + with: + python-version: '3.13' + - run: sudo apt update && sudo apt install -y meson + - run: meson setup --native-file=build_options/meson-clang-linux build + - run: meson test -c build + # - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + # - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + # - name: Check out repository code + # - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + # - run: echo "🖥️ The workflow is now ready to test your code on the runner." + # - name: List files in the repository + # run: | + # ls ${{ gitea.workspace }} + # - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/build_options/meson-clang-linux b/build_options/meson-clang-linux index 9ad442e..8c1a4c4 100644 --- a/build_options/meson-clang-linux +++ b/build_options/meson-clang-linux @@ -1,11 +1,11 @@ [binaries] -c = 'clang-19' -c_ld = 'lld-19' -cpp = 'clang++-19' -cpp_ld = 'lld-19' +c = 'clang' +c_ld = 'lld' +cpp = 'clang++' +cpp_ld = 'lld' [properties] c_args = ['-DEV_CC_CLANG=1','-fcolor-diagnostics', '-fansi-escape-codes', '-fms-extensions'] [cmake] -CMAKE_C_COMPILER = 'clang-19' +CMAKE_C_COMPILER = 'clang'