Skip to content

Add guard

Add guard #57

Workflow file for this run

name: Dev
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
ubuntu-dev:
runs-on: ubuntu-20.04
steps:
- name: Clone
uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v3
- name: Compile
run: |
echo "DD_TIME=DD-$(date +''%Y%m%d%H'')" >> $GITHUB_ENV
sudo apt-get install -y fuse libfuse2
git submodule update --init --recursive
cd oneTBB && git checkout v2021.5.0 && cd ..
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=release -DCOMPILE_TBB=ON ../
make -j"$(nproc)"
wget -q https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
chmod +x linuxdeployqt-continuous-x86_64.AppImage
mkdir deploy
cp damping-dolphin deploy
cd deploy
../linuxdeployqt-continuous-x86_64.AppImage damping-dolphin -bundle-non-qt-libs -unsupported-allow-new-glibc -no-translations
ls -alt
tar -czf damping-dolphin-linux.tar.gz *
cp damping-dolphin-linux.tar.gz ../../
- name: Upload
uses: actions/upload-artifact@v3
with:
name: damping-dolphin-linux.tar.gz
path: damping-dolphin-linux.tar.gz
- name: Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: damping-dolphin-linux.tar.gz
asset_name: damping-dolphin-linux.tar.gz
tag: ${{ env.DD_TIME }}
prerelease: true
overwrite: true