-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d3144a
commit 2d2de22
Showing
3 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/build-plugins.yml → ...lows/build-plugins-linux-glibc-x86_64.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters