Skip to content

Commit

Permalink
Update build-plugin.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jadael committed May 17, 2024
1 parent 4044dab commit e843e06
Showing 1 changed file with 1 addition and 40 deletions.
41 changes: 1 addition & 40 deletions .github/workflows/build-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,52 +70,13 @@ jobs:
name: ${{ matrix.platform }}
overwrite: true

build-mac:
name: mac
needs: modify-plugin-version
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
platform: [x64, arm64]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/cache@v4
id: plugin-version-cache
with:
path: plugin.json
key: ${{ github.sha }}-${{ github.run_id }}
- name: Get Rack-SDK
run: |
pushd $HOME
wget -O Rack-SDK.zip https://vcvrack.com/downloads/Rack-SDK-${{ env.rack-sdk-version }}-mac-x64%2barm64.zip
unzip Rack-SDK.zip
- name: Build plugin
run: |
export RACK_DIR=$HOME/Rack-SDK
export CROSS_COMPILE=x86_64-apple-darwin # Default to x64
if [[ "${{ matrix.platform }}" == "arm64" ]]; then
export CROSS_COMPILE=arm64-apple-darwin
fi
sed -i '' 's/-fno-gnu-unique//g' Makefile # Remove the problematic flag for macOS
make dep
make dist
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: dist/*.vcvplugin
name: mac-${{ matrix.platform }}
overwrite: true

publish:
name: Publish plugin
# only create a release if a tag was created that is called e.g. v1.2.3
# see also https://vcvrack.com/manual/Manifest#version
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: [build, build-mac]
needs: [build]
steps:
- uses: actions/checkout@v4
- uses: FranzDiebold/github-env-vars-action@v2
Expand Down

0 comments on commit e843e06

Please sign in to comment.