From f51ce109fe19e982cab70b2bac6531bd7b2c4092 Mon Sep 17 00:00:00 2001 From: AlexandreSinger Date: Tue, 25 Nov 2025 18:36:31 -0500 Subject: [PATCH 1/2] [CI] Added GitHub CI to LibSDCParse This PR adds a test workflow which builds LibSDCParse's tester executable and runs a suite of SDC files to parse. Also removed the old Travis yaml file. --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ .travis.yml | 23 ----------------------- 2 files changed, 35 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..002dc7e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: Test + +on: + push: + branches: + - master + pull_request: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' # daily + +# If this workflow is already running on a PR or branch, cancel it. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + TestSDCs: + name: 'R: Test SDC Parse' + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + + - name: 'Install Dependencies' + run: sudo apt update && sudo apt install -y flex bison + + - name: 'Build sdcparse_test' + run: | + cmake -H. -Bbuild -DCMAKE_COMPILE_WARNING_AS_ERROR=on + cmake --build build/ --target sdcparse_test + + - name: 'Run SDC Parse Tests' + run: | + cd build/ + ./../test_sdcs/test_parser.sh ../test_sdcs/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6754e67..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: cpp -dist: trusty #Ubuntu 14.04 by default -sudo: false #Use container based infrastructure - -matrix: - include: - #Extensive testing for base compiler - - env: MATRIX_EVAL="CC=gcc-5 CXX=g++-5" - addons: { apt: { packages: ["cmake", "g++-5", "libtbb-dev", "flex", "bison"], sources: ["ubuntu-toolchain-r-test"] } } -before_install: - - eval "${MATRIX_EVAL}" #Set compiler versions - - echo $CC - - echo $CXX - -script: - #Build - - mkdir -p build - - pushd build - - cmake .. - - make -j2 - - #Test - - ../test_sdcs/test_parser.sh ../test_sdcs/ From 23baee5946c00eddaee055f7366f26256b003933 Mon Sep 17 00:00:00 2001 From: AlexandreSinger Date: Wed, 26 Nov 2025 21:31:30 -0500 Subject: [PATCH 2/2] [CI] Removed Daily Test Run There is no clear reason to make the CI run daily. We can always add it in the future if it is found to be useful. --- .github/workflows/test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 002dc7e..45c3b49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,8 +6,6 @@ on: - master pull_request: workflow_dispatch: - schedule: - - cron: '0 0 * * *' # daily # If this workflow is already running on a PR or branch, cancel it. concurrency: