Skip to content

Commit

Permalink
1st try macOS x66_64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Olt committed Jul 12, 2024
1 parent 5d3144a commit 2d2de22
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build plugin"
name: "Build plugin linux-glibc-x86_64"

on:
workflow_dispatch:
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/build-plugins-macos-x86_64.yml
Original file line number Diff line number Diff line change
@@ -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 }}'
2 changes: 1 addition & 1 deletion plugins/colorbars.json
Original file line number Diff line number Diff line change
Expand Up @@ -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", "--"] }
]
Expand Down

0 comments on commit 2d2de22

Please sign in to comment.