From df851735e9fd5d6a3af6c70212d4de65c3729f1a Mon Sep 17 00:00:00 2001 From: "Jonathan B. Coe" Date: Wed, 4 Feb 2026 23:23:51 +0000 Subject: [PATCH] Add CI action for pure CMake build --- .github/workflows/cmake.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 000000000..5d7efc700 --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,38 @@ +--- +name: CMake Check +on: + push: + branches: [main] + paths: + - '.github/workflows/cmake.yml' + - 'CMakeLists.txt' + - 'src/**/*.c' + - 'include/nle/**/*.h' + - 'win/rl/**/*.cc' + pull_request: + paths: + - '.github/workflows/cmake.yml' + - 'CMakeLists.txt' + - 'src/**/*.c' + - 'include/nle/**/*.h' + - 'win/rl/**/*.cc' +jobs: + check_cc: + name: cmake-check + runs-on: ubuntu-latest + steps: + - name: Install non-python build dependencies + run: | + sudo apt-get update && sudo apt-get install -yq \ + apt-transport-https \ + bison \ + build-essential \ + flex \ + libbz2-dev \ + ninja-build \ + software-properties-common + - uses: actions/checkout@v4 + - name: Check CMake configure + run: cmake -B build -G Ninja + - name: CMake build + run: cmake --build build