CI: fix version handling

This commit is contained in:
Carl Philipp Klemm 2025-09-18 13:09:07 +02:00
parent 379342c086
commit c3afad46bc
2 changed files with 27 additions and 21 deletions

View file

@ -18,21 +18,27 @@ jobs:
chmod +x appimagetool-904-x86_64.AppImage
mv appimagetool-904-x86_64.AppImage /usr/bin/appimagetool
- name: libeismultiplexer version
id: version
id: libeisversion
run: |
cd ${{ gitea.workspace }}/libeismultiplexer
git fetch -a;
echo "tag=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT
- name: Version
id: version
run: |
cd ${{ gitea.workspace }}
git fetch -a;
echo "tag=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT
- name: Build and install libeismultiplexer
run: |
mkdir ${{ gitea.workspace }}/libeismultiplexer/build; cd ${{ gitea.workspace }}/libeismultiplexer/build
cmake -DCMAKE_BUILD_TYPE=Release -DGIT_TAG=${{ steps.version.outputs.tag }} ..
cmake -DCMAKE_BUILD_TYPE=Release -DGIT_TAG=${{ steps.libeisversion.outputs.tag }} ..
make
make install
- name: Build
run: |
mkdir ${{ gitea.workspace }}/build; cd ${{ gitea.workspace }}/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install/usr ..
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install/usr -DGIT_TAG=${{ steps.version.outputs.tag }} ..
make
make install
- name: Create Appimage