Skip to content

Add Package Selection Options and Code Cleanup #44

Add Package Selection Options and Code Cleanup

Add Package Selection Options and Code Cleanup #44

Workflow file for this run

name: script-build
# This specific workflow mainly calls script funtions to do the build. This method
# should make it more modular and not dependent on github actions. Downside is that
# there would be two or more different files to maintain. Another Pro is that I can
# adjust the script with env variables for different environments. By default,
# script will assunme that is in a ubuntu environment.
on:
- push
jobs:
linux:
name: Linux
runs-on: ubuntu-22.04
env:
PKG_MANAGER: apt-get
USE_SUDO: true
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
- name: "Make Script Executable"
run: chmod +x $GITHUB_WORKSPACE/scripts/linux-build.sh
- name: "Update Enviroment"
run: bash $GITHUB_WORKSPACE/scripts/linux-build.sh update-env
- name: "Install Dependencies"
run: bash $GITHUB_WORKSPACE/scripts/linux-build.sh install pkg-deps
- name: "Install libmypaint from Source"
run: bash $GITHUB_WORKSPACE/scripts/linux-build.sh install source-dep libmypaint true
- name: "Install mypaint-brushes from Source"
run: bash $GITHUB_WORKSPACE/scripts/linux-build.sh install source-dep mypaint-brushes true
- name: "Build MyPaint"
run: bash $GITHUB_WORKSPACE/scripts/linux-build.sh build
- name: "Test MyPaint"
run: xvfb-run --auto-servernum bash $GITHUB_WORKSPACE/scripts/linux-build.sh tests
- name: Run demo with XVFB
run: xvfb-run --auto-servernum bash $GITHUB_WORKSPACE/scripts/linux-build.sh demo
- name: "Clean MyPaint"
run: bash $GITHUB_WORKSPACE/scripts/linux-build.sh clean
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 30