Skip to content

Commit 4a45f35

Browse files
committed
Fetch and install latest release package
1 parent 68db810 commit 4a45f35

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@ jobs:
1313
run: |-
1414
sudo apt-get install build-essential cmake libeigen3-dev
1515
16+
- name: Build Tinyopt-example
17+
run: |-
18+
cmake ./ -B build -DBUILD_TINYOPT_TESTS=OFF
19+
cmake --build build -j 4
20+
linux-build-apk:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Check out repository code
24+
uses: actions/checkout@v4
25+
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
26+
27+
- name: Install dependencies
28+
run: |-
29+
sudo apt-get install build-essential cmake libeigen3-dev
30+
31+
- name: Install Tinyopt as a dependency
32+
run: |-
33+
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`
34+
echo $TAG
35+
wget -q --no-check-certificate https://github.com/julien-michot/tinyopt/releases/download/$TAG/tinyopt-$TAG-Linux.deb
36+
sudo dpkg -i tinyopt-$TAG-Linux.deb
37+
1638
- name: Build Tinyopt-example
1739
run: |-
1840
cmake ./ -B build -DBUILD_TINYOPT_TESTS=OFF

0 commit comments

Comments
 (0)