Skip to content

Build plugin darwin-x86_64 #1

Build plugin darwin-x86_64

Build plugin darwin-x86_64 #1

name: "Build plugin darwin-x86_64"
on:
workflow_dispatch:
jobs:
build-macos-x86_64:
name: Build macOS (Intel)
runs-on: macos-13
permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Install tools
run: |
brew install autoconf automake libtool pkg-config cmake nasm yasm meson ninja vapoursynth
- name: Build plugin
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
cd ${{ github.workspace }}
export PLUGIN_NAME=$(git show --name-only --pretty=format: | grep -m1 json | cut -d / -f 2 | cut -d . -f 1)
export CFLAGS="-mmacosx-version-min=10.11 -mmacos-version-min=10.11"
export MACOSX_DEPLOYMENT_TARGET="10.11"
export MACOS_DEPLOYMENT_TARGET="10.11"
python3 -m pip install --break-system-packages pyzstd click
./vsp-build.py ${PLUGIN_NAME}
cd output
export PLUGIN_FILE=$(find *.zip | grep -m1 zip)
gh release create \
${PLUGIN_NAME}-${{ github.sha }} \
--repo '${{ github.repository }}' \
--title ${PLUGIN_FILE} \
--notes "Automatic build of ${PLUGIN_NAME}"
gh release upload \
${PLUGIN_NAME}-${{ github.sha }} \
${PLUGIN_FILE} \
--repo '${{ github.repository }}'