mac build
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
name: build-macos
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup git
|
||||
run: |
|
||||
git config user.name "github-actions"
|
||||
git config user.email "github-actions@github.com"
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.26.3'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
brew install meson ninja pkg-config nasm
|
||||
|
||||
- name: Verify toolchain
|
||||
run: |
|
||||
go version
|
||||
clang --version
|
||||
make --version
|
||||
git --version
|
||||
meson --version
|
||||
ninja --version
|
||||
pkg-config --version
|
||||
nasm -v
|
||||
|
||||
- name: Clone gav1d
|
||||
run: |
|
||||
git clone --depth 1 https://github.com/d1nch8g/gav1d $HOME/gav1d
|
||||
|
||||
- name: Build vendor libs
|
||||
run: |
|
||||
go run cmd/build/main.go
|
||||
env:
|
||||
GITHUB_WORKSPACE: ${{ github.workspace }}
|
||||
|
||||
- name: Commit generated artifacts
|
||||
run: |
|
||||
git add -f vendor/darwin_arm64/
|
||||
git add -f vendor/darwin_amd64/
|
||||
git add -f vendor/include/
|
||||
|
||||
if git diff --cached --quiet; then
|
||||
echo "No changes"
|
||||
else
|
||||
git commit -m "Add macOS FFmpeg artifacts"
|
||||
git push
|
||||
fi
|
||||
Reference in New Issue
Block a user