Remove un-needed dependencies, fix build with newer system juce modul… #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: remove Latest | |
if: ${{ ! contains(github.ref_name, 'v') }} | |
uses: dev-drprasad/delete-tag-and-release@v0.2.1 | |
with: | |
delete_release: false | |
tag_name: Latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v1 | |
- name: submodule update | |
run: git submodule update --init --recursive | |
- name: make vst3 | |
run: | | |
sudo rm /etc/apt/sources.list.d/*.list | |
sudo apt-get update -qq | |
sudo apt-mark unhold libstdc++6 | |
sudo apt-get --reinstall install libstdc++6 | |
sudo apt-get install -yqq --allow-downgrades libcurl4-gnutls-dev/focal libfreetype6-dev/focal libglibmm-2.4-dev/focal libglib2.0-dev/focal libsigc++-2.0-dev/focal libfftw3-dev/focal libsndfile1-dev/focal liblilv-dev/focal liblrdf0-dev/focal libboost-iostreams-dev/focal libstdc++6/focal libc6-dev/focal libgcc-s1/focal libasound2-dev/focal libgtk-3-dev/focal libavahi-gobject-dev/focal libavahi-glib-dev/focal libavahi-client-dev/focal libeigen3-dev/focal libboost-system-dev/focal | |
sudo apt-get clean | |
- name: build | |
run: make | |
- name: compress | |
run: | | |
cd /home/runner/work/guitarix.vst/guitarix.vst/Builds/LinuxMakefile/build | |
zip -r /home/runner/work/guitarix.vst/guitarix.vst/Builds/LinuxMakefile/build/Guitarix.vst3.zip ./Guitarix.vst3 | |
- name: Create Latest | |
if: ${{ ! contains(github.ref_name, 'v') }} | |
uses: actions/create-release@v1 | |
id: create_pre_release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: Latest | |
release_name: Release latest | |
draft: false | |
prerelease: true | |
- name: Create Release | |
if: ${{ contains(github.ref_name, 'v') }} | |
uses: actions/create-release@v1 | |
id: create_release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref_name }} | |
release_name: Release | |
draft: false | |
prerelease: false | |
- name: Upload Latest Asset | |
if: ${{ ! contains(github.ref_name, 'v') }} | |
uses: actions/upload-release-asset@v1 | |
id: upload-latest-asset | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_pre_release.outputs.upload_url }} | |
asset_path: /home/runner/work/guitarix.vst/guitarix.vst/Builds/LinuxMakefile/build/Guitarix.vst3.zip | |
asset_name: Guitarix.vst3.zip | |
asset_content_type: application/zip | |
- name: Upload Release Asset | |
if: ${{ contains(github.ref_name, 'v') }} | |
uses: actions/upload-release-asset@v1 | |
id: upload-release-asset | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: /home/runner/work/guitarix.vst/guitarix.vst/Builds/LinuxMakefile/build/Guitarix.vst3.zip | |
asset_name: Guitarix.vst3.zip | |
asset_content_type: application/zip |