From 3dfa56ba5d3677cdbb33c212ab97c0c8b88f668a Mon Sep 17 00:00:00 2001 From: Danila Fominykh Date: Sun, 7 Jun 2026 10:01:58 +0300 Subject: [PATCH] mac build --- .github/workflows/bmac.yml | 61 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/bmac.yml diff --git a/.github/workflows/bmac.yml b/.github/workflows/bmac.yml new file mode 100644 index 0000000..e3d1350 --- /dev/null +++ b/.github/workflows/bmac.yml @@ -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