Update make_compile.py #3
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: Build Project | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- master | |
paths-ignore: | |
- '**.md' | |
tags: | |
- '*' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
name: Build-FFmpeg-${{ matrix.tag }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: macos-latest | |
tag: n5.0.1 | |
steps: | |
- name: CleanOldArtifact | |
uses: kolpav/purge-artifacts-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
expire-in: 15days | |
- name: Install Dependence | |
id: install-dependence | |
shell: pwsh | |
run: | | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install nasm | |
- name: CheckOut | |
id: checkout | |
uses: actions/checkout@v3 | |
- name: Clone FFmpeg | |
uses: actions/checkout@v3 | |
with: | |
repository: 'FFmpeg/FFmpeg' | |
ref: ${{ matrix.tag }} | |
path: 'ffmpeg' | |
- name: Build project | |
id: build | |
shell: pwsh | |
run: | | |
python3 make_compile.py --ffmpeg_dir ffmpeg --target_dir ffmpeg | |
python3 make_universal.py --dir ffmpeg | |
python3 package.py --dir ffmpeg --tag ${{ matrix.tag }} | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: FFmpeg-${{ matrix.tag }} | |
path: ${{ github.workspace }}/*.zip | |
- name: Upload release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
${{ github.workspace }}/*.zip | |
${{ github.workspace }}/install.py |