Proteus

Guitar amp and pedal capture plugin using neural networks
Log | Files | Refs | Submodules | README

cmake.yml (2203B)


      1 name: CI
      2 
      3 on:
      4   push:
      5     branches:
      6     - main
      7     - develop
      8   pull_request:
      9     branches:
     10     - main
     11     - develop
     12 
     13   workflow_dispatch:
     14 
     15 jobs:
     16   build_and_test:
     17     if: contains(toJson(github.event.commits), '***NO_CI***') == false && contains(toJson(github.event.commits), '[ci skip]') == false && contains(toJson(github.event.commits), '[skip ci]') == false
     18     name: Test plugin on ${{ matrix.os }}
     19     runs-on: ${{ matrix.os }}
     20     strategy:
     21       fail-fast: false # show all errors for each platform (vs. cancel jobs on error)
     22       matrix:
     23         os: [ubuntu-latest, windows-2019, macOS-latest] 
     24     
     25     steps:
     26     - name: Install Linux Deps
     27       if: runner.os == 'Linux'
     28       run: |
     29         sudo apt-get update
     30         sudo apt install libasound2-dev libcurl4-openssl-dev libx11-dev libxinerama-dev libxext-dev libfreetype6-dev libwebkit2gtk-4.0-dev libglu1-mesa-dev libjack-jackd2-dev lv2-dev
     31         sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9
     32         sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
     33     - name: Get latest CMake
     34       uses: lukka/get-cmake@latest
     35 
     36     - name: Checkout code
     37       uses: actions/checkout@v2
     38       with:
     39         submodules: recursive
     40 
     41     - name: Configure
     42       shell: bash
     43       run: cmake -Bbuild
     44 
     45     - name: Build
     46       shell: bash
     47       run: cmake --build build --config Release --parallel 4
     48     
     49     # Failing validation, fix
     50     #- name: Validate
     51     #  if: runner.os == 'Windows'
     52     #  run: bash validate.sh
     53 
     54     - name: Upload Linux Artifact GitHub Action
     55       if: runner.os == 'Linux'
     56       uses: actions/upload-artifact@v2
     57       with: 
     58         name: linux-assets
     59         path: /home/runner/work/Proteus/Proteus/build/Proteus_artefacts
     60         
     61     - name: Upload Mac Artifact GitHub Action
     62       if: runner.os == 'macOS'
     63       uses: actions/upload-artifact@v2
     64       with:
     65         name: mac-assets
     66         path: /Users/runner/work/Proteus/Proteus/build/Proteus_artefacts
     67         
     68     - name: Upload Windows Artifact GitHub Action
     69       if: runner.os == 'Windows'
     70       uses: actions/upload-artifact@v2
     71       with:
     72         name: win-assets
     73         path: D:/a/Proteus/Proteus/build/Proteus_artefacts