Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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 install

- name: Build the project
run: npm run build

- name: Run tests
run: npm run test
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -37,8 +38,8 @@
"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/extended-task-graph": "^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",
"csv-parser": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion test/TestSingleHotspot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const config = new HoopaConfig()
.addBuiltinFpgaTarget(BuiltinFpgaTarget.ZCU102);

const hoopa = new HoopaAPI("edge_detect", config, "outputs/local", "edgedetect");
hoopa.runFromStart(false);
hoopa.runFromStart(false);
Loading