name: ubuntu
on: [push]
jobs:
  compile:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 1
      - run: mkdir .ofxPiMapper
      - run: mv ./* .ofxPiMapper/
      - run: wget https://openframeworks.cc/versions/v0.11.0/of_v0.11.0_linux64gcc6_release.tar.gz --tries=10
      - run: tar -xvf of_v0.11.0_linux64gcc6_release.tar.gz
      - run: rm of_v0.11.0_linux64gcc6_release.tar.gz
      - run: mv of_v0.11.0_linux64gcc6_release openFrameworks
      - run: mv .ofxPiMapper openFrameworks/addons/ofxPiMapper
      - run: cd openFrameworks/scripts/linux/ubuntu
      - run: pwd && ls -al
      - run: ./install_dependencies.sh