Skip to content

Commit 2e9be80

Browse files
committed
Add github action
1 parent c4a1187 commit 2e9be80

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Tinyopt-example Build & Tests
2+
run-name: Tinyopt-example Build 🚀 and Tests
3+
on: [push]
4+
jobs:
5+
linux-build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check out repository code
9+
uses: actions/checkout@v4
10+
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
11+
12+
- name: Install dependencies
13+
run: |-
14+
sudo apt-get install build-essential cmake libeigen3-dev
15+
16+
- name: Build Tinyopt-example
17+
run: |-
18+
cmake ./ -B build -DBUILD_TINYOPT_TESTS=OFF
19+
cmake --build build -j 4

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,12 @@
3030
*.exe
3131
*.out
3232
*.app
33+
34+
# Dev
35+
.vscode/
36+
.vscode_backup/
37+
.devcontainer.json
38+
39+
.cache/
40+
build*/
41+
tmp/

0 commit comments

Comments
 (0)