Add automake to pipeline #23
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
name: FFmpeg library | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- '.github/workflows/ffmpeg.yml' | |
- 'internal/builder/**' | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
linux_amd64: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: uname -a | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: Install deps | |
run: sudo apt-get install -y yasm nasm meson gperf | |
- run: mkdir build | |
- name: Build | |
working-directory: build | |
run: go run ../internal/builder/ ../libffmpeg_linux_amd64.a | |
- run: ls -la | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
title: "[CI] Rebuild linux amd64 library" | |
body: Automated changes by CI pipeline. | |
commit-message: "[CI] Rebuild linux amd64 library" | |
committer: GitHub CI <noreply@github.com> | |
author: GitHub CI <noreply@github.com> | |
branch: ci/linux-amd64 | |
add-paths: libffmpeg_linux_amd64.a | |
darwin_amd64: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: uname -a | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: Install deps | |
run: brew install yasm autoconf ragel meson nasm automake | |
- run: mkdir build | |
- name: Build | |
working-directory: build | |
run: go run ../internal/builder/ ../libffmpeg_darwin_amd64.a | |
- run: ls -la | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
title: "[CI] Rebuild darwin amd64 library" | |
body: Automated changes by CI pipeline. | |
commit-message: "[CI] Rebuild darwin amd64 library" | |
committer: GitHub CI <noreply@github.com> | |
author: GitHub CI <noreply@github.com> | |
branch: ci/darwin-amd64 | |
add-paths: libffmpeg_darwin_amd64.a | |
darwin_arm64: | |
runs-on: macos-13-arm64 | |
if: ${{ false }} # Not available in public runners | |
steps: | |
- uses: actions/checkout@v4 | |
- run: uname -a | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: Install deps | |
run: brew install yasm | |
- run: mkdir build | |
- name: Build | |
working-directory: build | |
run: go run ../internal/builder/ ../libffmpeg_darwin_arm64.a | |
- run: ls -la | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
title: "[CI] Rebuild darwin arm64 library" | |
body: Automated changes by CI pipeline. | |
commit-message: "[CI] Rebuild darwin arm64 library" | |
committer: GitHub CI <noreply@github.com> | |
author: GitHub CI <noreply@github.com> | |
branch: ci/darwin-arm64 | |
add-paths: libffmpeg_darwin_arm64.a |