Prepare v1.4.1 #228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [main] | |
jobs: | |
AppImage_Ubuntu20-04: | |
name: AppImage Ubuntu 20.04 | |
runs-on: ubuntu-20.04 | |
env: | |
QT_SELECT: qt5 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: sudo apt update && sudo apt install qtbase5-dev qt5-qmake qttools5-dev-tools | |
- name: Download linuxdeployqt | |
run: | | |
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" | |
chmod a+x linuxdeployqt-continuous-x86_64.AppImage | |
unset QTDIR ; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH | |
export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file | |
- name: Download ffsend | |
run: | | |
FFSEND_VERSION=$(curl --silent https://api.github.com/repos/timvisee/ffsend/releases/latest | sed -Ene '/^ *"tag_name": *"(v.+)",$/s//\1/p') | |
wget -c -nv "https://github.com/timvisee/ffsend/releases/download/$FFSEND_VERSION/ffsend-$FFSEND_VERSION-linux-x64-static" | |
mv ./ffsend-* ./ffsend | |
chmod a+x ./ffsend | |
- name: Compile | |
run: | | |
qmake CONFIG+=release PREFIX=/usr | |
make -j$(nproc) | |
make INSTALL_ROOT=appdir -j$(nproc) install | |
find appdir | |
- name: Create AppImage | |
run: | | |
./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -appimage -bundle-non-qt-libs -extra-plugins=iconengines,platformthemes/libqgtk3.so | |
find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq | |
- name: Upload AppImage | |
run: | | |
./ffsend upload iQPuzzle-*-x86_64.AppImage | |
macOS_laetst: | |
name: macOS | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: | | |
brew install p7zip | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: '6.5.*' | |
host: 'mac' | |
target: 'desktop' | |
- name: Compile | |
run: | | |
mkdir build | |
cd build | |
qmake ../iqpuzzle.pro CONFIG+=release | |
make | |
rm -rf .moc | |
rm -rf .obj | |
rm -rf .qrc | |
- name: Create dmg archive and zip | |
run: | | |
cd build | |
VERSION=$(git rev-parse --short HEAD) | |
macdeployqt "iQPuzzle.app" -dmg | |
mv "iQPuzzle.dmg" "iQPuzzle_${VERSION}.dmg" | |
cp "../README.md" "./README.md" | |
cp "../COPYING" "./COPYING" | |
7z a iQPuzzle_${VERSION}_macOS.zip "iQPuzzle_${VERSION}.dmg" "README.md" "COPYING" | |
- name: Upload macOS zip | |
run: | | |
cd build | |
curl --upload-file ./iQPuzzle_*_macOS.zip https://transfer.adminforge.de/iQPuzzle_macOS.zip |