-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.49 KB
/
build.yml
File metadata and controls
42 lines (36 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Tinyopt-example Build & Tests
run-name: Tinyopt-example Build 🚀 and Tests
on: [push]
jobs:
linux-build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Install dependencies
run: |-
sudo apt-get install build-essential cmake libeigen3-dev
- name: Build Tinyopt-example
run: |-
cmake ./ -B build -DTINYOPT_BUILD_TESTS=OFF
cmake --build build -j 4
linux-build-deb:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Install dependencies
run: |-
sudo apt-get install build-essential cmake libeigen3-dev
- name: Install Tinyopt as a dependency
run: |-
TAG=`git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/julien-michot/tinyopt.git/ | tail --lines=1 | cut --delimiter='/' --fields=3`
echo $TAG
wget -q --no-check-certificate https://github.com/julien-michot/tinyopt/releases/download/$TAG/tinyopt-${TAG:1}-Linux.deb
sudo dpkg -i tinyopt-${TAG:1}-Linux.deb
- name: Build Tinyopt-example
run: |-
cmake ./ -B build
cmake --build build -j 4