From 08f1dd389d821b3b22dedb3eff127f119d33d322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Bispo?= Date: Wed, 12 Aug 2026 15:49:40 +0100 Subject: [PATCH 1/4] Adds GitHub workflow --- .github/workflows/main.yml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..afd32cb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,45 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + JAVA_VERSION: 21 + +jobs: + test: + strategy: + fail-fast: false + matrix: + node-version: ['22.x'] + os: [ubuntu-latest, windows-2022, macos-latest] + + runs-on: ${{ matrix.os }} + + steps: + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: ${{ env.JAVA_VERSION }} + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + registry-url: 'https://registry.npmjs.org/' + + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install dependencies + run: npm ci + + - name: Build the project + run: npm run build + + - name: Run tests + run: npm run test From 769170141d7ec1ec2b8f506dc99d32fd4e603571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Bispo?= Date: Wed, 12 Aug 2026 16:02:02 +0100 Subject: [PATCH 2/4] Enables test (gpt-5.6-sol high) --- .github/workflows/main.yml | 2 +- package.json | 1 + test/TestSingleHotspot.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index afd32cb..308d70d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: uses: actions/checkout@v4 - name: Install dependencies - run: npm ci + run: npm install - name: Build the project run: npm run build diff --git a/package.json b/package.json index 636a967..390490b 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "build:watch": "tsc --watch", "lint": "eslint .", "docs": "typedoc", + "test": "npm run test:predefined-tasks", "bench:apps": "clava dist/test/TestAppsSuite.js -ncg", "test:single-hotspot": "clava classic dist/test/TestSingleHotspot.js -p inputs/edgedetect/edge_detect.cpp -ncg", "test:predefined-tasks": "clava classic dist/test/TestPredefinedTasks.js -p inputs/edgedetect/edge_detect.cpp -ncg", diff --git a/test/TestSingleHotspot.ts b/test/TestSingleHotspot.ts index 156c6c0..0cb135a 100644 --- a/test/TestSingleHotspot.ts +++ b/test/TestSingleHotspot.ts @@ -11,4 +11,4 @@ const config = new HoopaConfig() .addBuiltinFpgaTarget(BuiltinFpgaTarget.ZCU102); const hoopa = new HoopaAPI("edge_detect", config, "outputs/local", "edgedetect"); -hoopa.runFromStart(false); \ No newline at end of file +hoopa.runFromStart(false); From ba5f5abca2e2f2f08e5b429507eefe5e769b2e49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Bispo?= Date: Wed, 12 Aug 2026 16:12:22 +0100 Subject: [PATCH 3/4] Updates dependency version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 390490b..98cc50d 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@specs-feup/clava": "^3.0.8", "@specs-feup/clava-code-transforms": "^1.0.0", "@specs-feup/clava-vitis-integration": "^1.0.0", - "@specs-feup/extended-task-graph": "^1.0.0", + "@specs-feup/extended-task-graph": "^1.1.0", "@specs-feup/lara": "^3.0.5", "chalk": "^5.3.0", "csv-parser": "^3.2.0", From cabcf1030317721e3eff9614ace6df1d4bfa2bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Bispo?= Date: Wed, 12 Aug 2026 16:16:55 +0100 Subject: [PATCH 4/4] Updates dependency version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 98cc50d..b158d0a 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "dependencies": { "@specs-feup/clava": "^3.0.8", "@specs-feup/clava-code-transforms": "^1.0.0", - "@specs-feup/clava-vitis-integration": "^1.0.0", + "@specs-feup/clava-vitis-integration": "^1.1.0", "@specs-feup/extended-task-graph": "^1.1.0", "@specs-feup/lara": "^3.0.5", "chalk": "^5.3.0",