From 84fa28f3cc19dd8a22841ea996763f84630bcf1a Mon Sep 17 00:00:00 2001 From: hanez Date: Tue, 31 Mar 2026 00:58:11 +0200 Subject: [PATCH] Added first GitHub action for evaluation. No code changes. (0.39.15) --- .editorconfig | 2 +- .github/workflows/cmake-ubuntu-latest.yml | 63 +++++++++++++++++++++++ .gitignore | 1 + 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/cmake-ubuntu-latest.yml diff --git a/.editorconfig b/.editorconfig index e7b467c..1acfb67 100644 --- a/.editorconfig +++ b/.editorconfig @@ -45,7 +45,7 @@ ij_shell_use_unix_line_separator = true [*.c] indent_style = space -indent_size = 4 +indent_size = 2 tab_width = 1 [*.csv] diff --git a/.github/workflows/cmake-ubuntu-latest.yml b/.github/workflows/cmake-ubuntu-latest.yml new file mode 100644 index 0000000..b050262 --- /dev/null +++ b/.github/workflows/cmake-ubuntu-latest.yml @@ -0,0 +1,63 @@ +name: CMake for Fun on Ubuntu-Latest + +on: + push: + branches: [ "main" ] + +env: + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ${{github.workspace}} + + steps: + - uses: actions/checkout@v4 + + - name: Update apt + run: sudo apt update + + - name: Upgrade apt + run: sudo apt upgrade -y + + - name: Install dependencies + run: sudo apt install cmake -y + + - name: Configure CMake + run: > + cmake -S . -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ + -DFUN_DEBUG=OFF \ + -DFUN_WITH_REPL=OFF \ + -DFUN_WITH_PCSC=OFF \ + -DFUN_WITH_LIBSQL=OFF \ + -DFUN_WITH_SQLITE=OFF \ + -DFUN_WITH_CURL=OFF \ + -DFUN_WITH_PCRE2=OFF \ + -DFUN_WITH_XML2=OFF \ + -DFUN_WITH_JSON=OFF \ + -DFUN_WITH_TCLTK=OFF \ + -DFUN_WITH_INI=OFF \ + -DFUN_WITH_NOTCURSES=OFF \ + -DFUN_WITH_CPP=OFF \ + -DFUN_WITH_OPENSSL=OFF \ + -DFUN_WITH_LIBRESSL=OFF \ + -DFUN_WITH_YAML=OFF \ + -DFUN_USE_MUSL=OFF \ + -DFUN_WITH_CPP=OFF \ + -DFUN_WITH_RUST=OFF + + - name: Build + run: cmake --build build --config ${{env.BUILD_TYPE}} --target all + + - name: Test + working-directory: ${{github.workspace}}/build + run: ctest -C ${{env.BUILD_TYPE}} + + - name: Run Examples + run: ./scripts/run_examples.sh + + - name: Run Examples + run: ./scripts/run_examples.sh math diff --git a/.gitignore b/.gitignore index 48a69a6..063129a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ CMakeCache.txt .* !.editorconfig !.gitignore +!.github .venv build* cmake_install.cmake