Skip to content

Commit e959bd1

Browse files
committed
added CI workflow
1 parent 06fd32c commit e959bd1

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Install dependencies
18+
run: sudo apt-get update && sudo apt-get install -y cmake build-essential
19+
20+
- name: Create build directory
21+
run: mkdir build
22+
23+
- name: Run CMake
24+
run: cmake ..
25+
working-directory: build
26+
27+
- name: Build
28+
run: make
29+
working-directory: build
30+
31+
- name: Test
32+
run: ./tests/constrained_ilqr_tests
33+
working-directory: build

0 commit comments

Comments
 (0)