NeuralAmpModelerPlugin

Plugin for Neural Amp Modeler
Log | Files | Refs | Submodules | README | LICENSE

release-native.yml (4730B)


      1 name: Release Native
      2 
      3 on:
      4   workflow_dispatch:
      5   push:
      6     tags:
      7       - "v*"
      8 
      9 env:
     10   PROJECT_NAME: NeuralAmpModeler
     11 
     12 jobs:
     13   create_release:
     14     name: Create release
     15     runs-on: ubuntu-latest
     16     outputs:
     17       upload_url: ${{steps.create_release.outputs.upload_url}}
     18     steps:
     19       - name: Check out repository
     20         uses: actions/checkout@v2
     21         with:
     22           submodules: recursive
     23 
     24       - name: Create release
     25         id: create_release
     26         uses: actions/create-release@v1
     27         env:
     28           GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
     29         with:
     30           draft: true
     31           tag_name: ${{github.ref}}
     32           release_name: Release ${{github.ref}}
     33           body_path: ${{env.PROJECT_NAME}}/installer/changelog.txt
     34 
     35   build:
     36     name: Build
     37     needs: create_release
     38     runs-on: ${{matrix.os}}
     39     strategy:
     40       matrix:
     41         os: [macos-latest, windows-latest]
     42         include:
     43           - os: macos-latest
     44             build_dir: build-mac
     45           - os: windows-latest
     46             build_dir: build-win
     47 
     48     steps:
     49     - name: Check out repository
     50       uses: actions/checkout@v2
     51       with:
     52         submodules: recursive
     53 
     54     - name: Get VST3 SDK
     55       run: |
     56         cd iPlug2/Dependencies/IPlug
     57         ./download-iplug-sdks.sh
     58       shell: bash
     59 
     60     - name: Get Prebuilt Libs
     61       run: |
     62         cd iPlug2/Dependencies
     63         ./download-prebuilt-libs.sh
     64       shell: bash
     65 
     66     - name: Get Archive Name macOS
     67       id: mac_archivename_step
     68       if: matrix.os == 'macOS-latest'
     69       run: |
     70         ARCHIVE_NAME=`python3 iPlug2/Scripts/get_archive_name.py ${{env.PROJECT_NAME}} mac full`
     71         echo "archive_name=$ARCHIVE_NAME" >> $GITHUB_OUTPUT
     72       shell: bash
     73 
     74     - name: Build macOS
     75       if: matrix.os == 'macOS-latest'
     76       run: |
     77         cd ${{env.PROJECT_NAME}}/scripts
     78         ./makedist-mac.sh full installer
     79       shell: bash
     80 
     81     - name: Upload mac DSYMs release asset
     82       if: matrix.os == 'macOS-latest'
     83       uses: actions/upload-release-asset@v1
     84       env:
     85         GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
     86       with:
     87         upload_url: ${{needs.create_release.outputs.upload_url}}
     88         asset_path: ${{env.PROJECT_NAME}}/${{matrix.build_dir}}/out/${{steps.mac_archivename_step.outputs.archive_name}}-dSYMs.zip
     89         asset_name: ${{steps.mac_archivename_step.outputs.archive_name}}-dSYMs.zip
     90         asset_content_type: application/zip
     91 
     92     - name: Upload mac dmg release asset
     93       if: matrix.os == 'macOS-latest'
     94       uses: actions/upload-release-asset@v1
     95       env:
     96         GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
     97       with:
     98         upload_url: ${{needs.create_release.outputs.upload_url}}
     99         asset_path: ${{env.PROJECT_NAME}}/${{matrix.build_dir}}/out/${{steps.mac_archivename_step.outputs.archive_name}}.dmg
    100         asset_name: ${{steps.mac_archivename_step.outputs.archive_name}}.dmg
    101         asset_content_type: application/octet-stream
    102 
    103     - name: Add msbuild to PATH (Windows)
    104       if: matrix.os == 'windows-latest'
    105       uses: microsoft/[email protected]
    106 
    107     - name: Setup Python3
    108       if: matrix.os == 'windows-latest'
    109       uses: actions/setup-python@v2
    110       with:
    111         python-version: '3.x'
    112         architecture: 'x64'
    113 
    114     - name: Get Archive Name Windows
    115       id: win_archivename_step
    116       if: matrix.os == 'windows-latest'
    117       run: |
    118         ARCHIVE_NAME=`python.exe iPlug2/Scripts/get_archive_name.py ${{env.PROJECT_NAME}} win full`
    119         echo "archive_name=$ARCHIVE_NAME" >> $GITHUB_OUTPUT
    120       shell: bash
    121 
    122     - name: Build Windows
    123       if: matrix.os == 'windows-latest'
    124       run: |
    125         cd ${{env.PROJECT_NAME}}\scripts
    126         .\makedist-win.bat full installer
    127       shell: pwsh
    128 
    129     - name: Upload Windows pdb release asset
    130       if: matrix.os == 'windows-latest'
    131       uses: actions/upload-release-asset@v1
    132       env:
    133         GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
    134       with:
    135         upload_url: ${{needs.create_release.outputs.upload_url}}
    136         asset_path: ${{env.PROJECT_NAME}}/${{matrix.build_dir}}/out/${{steps.win_archivename_step.outputs.archive_name}}-pdbs.zip
    137         asset_name: ${{steps.win_archivename_step.outputs.archive_name}}-pdbs.zip
    138         asset_content_type: application/zip
    139 
    140     - name: Upload Windows zip release asset
    141       if: matrix.os == 'windows-latest'
    142       uses: actions/upload-release-asset@v1
    143       env:
    144         GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
    145       with:
    146         upload_url: ${{needs.create_release.outputs.upload_url}}
    147         asset_path: ${{env.PROJECT_NAME}}/${{matrix.build_dir}}/out/${{steps.win_archivename_step.outputs.archive_name}}.zip
    148         asset_name: ${{steps.win_archivename_step.outputs.archive_name}}.zip
    149         asset_content_type: application/zip