Minor CI updates

Added tag-snapshot.yml script
Removed obsolete appveyor and travis scripts
This commit is contained in:
Jaye Evins
2025-11-25 16:22:20 -05:00
parent 56501b5f0a
commit 1ebddfc534
3 changed files with 34 additions and 183 deletions
-58
View File
@@ -1,58 +0,0 @@
# Build glabels windows installer.
#
# Currently, only builds snapshots and is triggered by the travis CI build.
version: 3.99.0.{build}
branches:
# blacklist
except:
- /.*/
# whitelist
only:
- master
skip_non_tags: true
image: Visual Studio 2017
init:
- git config --global core.autocrlf true
install:
# Locate Qt installation
- set QTDIR=c:\Qt\5.11\msvc2017_64
- set PATH=%PATH%;%QTDIR%\bin
# Zlib and QREncode
- vcpkg install zlib:x64-windows
- vcpkg install libqrencode:x64-windows
- vcpkg integrate install
build_script:
- git checkout master # re-attach to master to satisfy auto version tooling
- mkdir build
- cd build
- cmake -G "Visual Studio 15 2017 Win64" .. -DCMAKE_PREFIX_PATH=%QTDIR% -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake
- cmake --build . --config Release
- ctest -C Release
- cpack -C Release -G NSIS64
- set /P VERSION=<VERSION
- move glabels-3.99.0-win64.exe glabels-%VERSION%-win64.exe
artifacts:
- path: build\glabels-%VERSION%-win64.exe
name: windows-installer
deploy:
- provider: GitHub
release: glabels-%VERSION%
artifact: windows-installer
auth_token:
secure: mPNNgwWP58gu4eA2wVwGkGWNTzJigKj1g/XjsZ9vk03rLMmf5fxC/XNr15fPBCi8
draft: false
prerelease: true
force_update: true
on:
branch: master
+34
View File
@@ -0,0 +1,34 @@
name: Tag Snapshot
on:
workflow_dispatch:
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Checkout full-depth to facilitate auto versioning
fetch-depth: 0
- name: Set strings
id: strings
shell: bash
run: |
echo "version=3.99-master$(git rev-list --count master --)" >> "$GITHUB_OUTPUT"
- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.strings.outputs.version }}
body: "Pre-4.0 development snapshot release"
draft: false
prerelease: true
-125
View File
@@ -1,125 +0,0 @@
language: cpp
# blocklist
branches:
except:
- /.*/ # Everything
# safelist
branches:
only:
- master
matrix:
include:
#####################
#
# Linux build
#
#####################
- name: "Linux"
os: linux
dist: bionic
sudo: require
env:
- QMAKE_PATH=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
install:
- sudo apt-get -y install qtbase5-dev libqt5svg5-dev qttools5-dev
- sudo apt-get -y install xvfb
- sudo apt-get -y install pkgconf libqrencode-dev
- sudo apt-get -y install barcode
# Install zint from source
- wget https://downloads.sourceforge.net/project/zint/zint/2.12.0/zint-2.12.0-src.tar.gz && tar xzf zint-2.12.0-src.tar.gz && ( cd zint-2.12.0-src && mkdir build && cd build && cmake .. && make && sudo make install )
- export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
before_script:
- git fetch --unshallow # restore repository depth to properly count commits in auto versioning
- git checkout master # re-attach to master to satisfy auto versioning
script:
- mkdir build
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr
- make -j4
- xvfb-run ctest
- VERSION=$(cat VERSION)
after_success:
# Download AppImage QT deployment tool (local snapshot -- original at github/probono)
- wget -c "https://github.com/j-evins/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt*.AppImage
#
# Create AppImage
#
- make DESTDIR=appdir install
- unset QTDIR; unset QT_PLUGIN_PATH
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -qmake=${QMAKE_PATH} -bundle-non-qt-libs
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -qmake=${QMAKE_PATH} -appimage
- mv ./gLabels*.AppImage glabels-${VERSION}-x86_64.AppImage
before_deploy:
- git config --local user.name "Jaye Evins (Travis CI)"
- git config --local user.email evins@snaught.com
- git tag -f -a glabels-${VERSION} -m "glabels-${VERSION} CI"
deploy:
provider: releases
api_key: ${GITHUB_TOKEN}
file:
- glabels-${VERSION}-x86_64.AppImage
draft: false
prerelease: true
skip_cleanup: true
# #####################
# #
# # MacOS build
# #
# #####################
# - name: "MacOS"
# os: osx
#
# install:
# - brew install qt
#
# before_script:
# - git fetch --unshallow # restore repository depth to properly count commits in auto versioning
# - git checkout master # re-attach to master to satisfy auto versioning
#
# script:
# - mkdir build
# - cd build
# - cmake .. -DCMAKE_PREFIX_PATH=/usr/local/opt/qt
# - make -j4
# #- ctest --verbose
# - VERSION=$(cat VERSION)
# #####################
# #
# # Windows build
# #
# #####################
# - name: "Windows"
# os: windows
#
# before_script:
# - git fetch --unshallow # restore repository depth to properly count commits in auto versioning
# - git checkout master # re-attach to master to satisfy auto versioning
#
# script:
# - mkdir build
# - cd build
# #- cmake .. -G "Visual Studio 15 2017 Win64"
# #- cmake --build . --config Release
# #- ctest -C Release
# #- VERSION=$(cat VERSION)
#
# after_success:
# #
# # Create Windows Installer
# #
# #- cpack -C Release -G NSIS64