name: C/C++ debug ubuntu on: push: branches: - debug_ubuntu jobs: build: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 with: ref: 'debug_ubuntu' - name: update submodule profiles working-directory: ./resources/profiles run: git submodule update --init - name: change date in version run: sed -i "s/+UNKNOWN/_$(date '+%F')/" version.inc - name: update clock run: sudo hwclock -s - name: update apt run: sudo apt update - name: install gtk2 glew run: sudo apt install libgtk2.0-dev libglew-dev libudev-dev libdbus-1-dev - name: mkdir in deps run: mkdir deps/build - name: cmake deps working-directory: ./deps/build run: cmake .. -DCMAKE_BUILD_TYPE=Debug - name: make deps working-directory: ./deps/build run: make - name: ls libs working-directory: ./deps/build run: ls ./destdir/usr/local/lib - name: rename wxscintilla working-directory: ./deps/build/destdir/usr/local/lib run: cp libwxscintilla-3.1.a libwx_gtk2u_scintilla-3.1.a - name: clean deps working-directory: ./deps/build run: rm -rf dep_* - name: mkdir build run: mkdir build - name: cmake working-directory: ./build run: cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH="/home/runner/work/SuperSlicer/SuperSlicer/deps/build/destdir/usr/local" -DSLIC3R_STATIC=1 - name: make SuperSlicer working-directory: ./build run: make Slic3r - name: make .mo working-directory: ./build run: make gettext_po_to_mo - name: create directory and copy into it working-directory: ./build run: | mkdir package mkdir package/bin - name: copy resources working-directory: ./build run: cp -Rf ../resources package/resources - name: copy bin working-directory: ./build run: cp -f src/superslicer package/bin/SuperSlicer - name: create sh from echo working-directory: ./build/package run: | echo -e '#!/bin/bash\nDIR=$(readlink -f "$0" | xargs dirname)\nexport LD_LIBRARY_PATH="$DIR/bin"\nexec "$DIR/bin/superslicer" "$@"' >superslicer chmod u+x superslicer tar -cvf ../SuperSlicer.tar . - name: Upload artifact uses: actions/upload-artifact@v1.0.0 with: name: nightly_linux.tar path: build/SuperSlicer.tar - name: build appimage working-directory: ./build/package run: | chmod +x ../build_appimage.sh ../build_appimage.sh - name: 'Tar files' working-directory: ./build/package run: tar -cvf SuperSlicer_ubu64.AppImage.tar SuperSlicer_ubu64.AppImage - name: Upload appimage uses: actions/upload-artifact@v1.0.0 with: name: Slic3r-AppImage.tar path: build/package/SuperSlicer_ubu64.AppImage.tar