From 2d2de22687dcead00d395fdf2f88c33ec2c3ab7e Mon Sep 17 00:00:00 2001 From: Stefan-olt Date: Fri, 12 Jul 2024 13:43:11 +0200 Subject: [PATCH] 1st try macOS x66_64 build --- ...l => build-plugins-linux-glibc-x86_64.yml} | 2 +- .../workflows/build-plugins-macos-x86_64.yml | 46 +++++++++++++++++++ plugins/colorbars.json | 2 +- 3 files changed, 48 insertions(+), 2 deletions(-) rename .github/workflows/{build-plugins.yml => build-plugins-linux-glibc-x86_64.yml} (98%) create mode 100644 .github/workflows/build-plugins-macos-x86_64.yml diff --git a/.github/workflows/build-plugins.yml b/.github/workflows/build-plugins-linux-glibc-x86_64.yml similarity index 98% rename from .github/workflows/build-plugins.yml rename to .github/workflows/build-plugins-linux-glibc-x86_64.yml index bec85c7..9c792bb 100644 --- a/.github/workflows/build-plugins.yml +++ b/.github/workflows/build-plugins-linux-glibc-x86_64.yml @@ -1,4 +1,4 @@ -name: "Build plugin" +name: "Build plugin linux-glibc-x86_64" on: workflow_dispatch: diff --git a/.github/workflows/build-plugins-macos-x86_64.yml b/.github/workflows/build-plugins-macos-x86_64.yml new file mode 100644 index 0000000..3df27ab --- /dev/null +++ b/.github/workflows/build-plugins-macos-x86_64.yml @@ -0,0 +1,46 @@ +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 }}' + diff --git a/plugins/colorbars.json b/plugins/colorbars.json index 8e1af87..b0d4133 100644 --- a/plugins/colorbars.json +++ b/plugins/colorbars.json @@ -17,7 +17,7 @@ "tests": [ { "name" : "create-720p-colorbars", - "create_files" : ["colorbars-test.vpy"], + "create_files" : ["colorbars-test.vpy" ], "commands": [ { "cwd": "{TESTDIR}", "cmd": ["{VSPIPE}", "colorbars-test.vpy", "--"] } ]