From be699bdc91375ec0fb9303bcde6cd2149b75e5fc Mon Sep 17 00:00:00 2001 From: Shourya Goel Date: Fri, 8 Nov 2024 02:21:04 +0530 Subject: [PATCH] Create c-cpp.yml --- .github/workflows/c-cpp.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..4fafc52 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,38 @@ +name: Rchan CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y cmake build-essential + + - name: Create build directory + run: mkdir build + + - name: Configure CMake + working-directory: ./build + run: cmake .. + + - name: Build + working-directory: ./build + run: make + + - name: Run Rchan tests + working-directory: ./build + run: make testRchan + + - name: Run Speed tests + working-directory: ./build + run: make testSpeed