add av1 encoding support #17
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: wcap | |
on: | |
push: | |
branches: main | |
paths-ignore: | |
- '**/README.md' | |
pull_request: | |
branches: main | |
paths-ignore: | |
- '**/README.md' | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: repo | |
- name: Build (x64) | |
shell: cmd | |
run: cd repo && build.cmd x64 | |
- name: Build (arm64) | |
shell: cmd | |
run: cd repo && build.cmd arm64 | |
- name: Checkout wiki | |
uses: actions/checkout@v4 | |
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
with: | |
repository: ${{github.repository}}.wiki | |
path: wiki | |
- name: Upload binaries | |
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
shell: cmd | |
run: | | |
copy repo\wcap-x64.exe wiki | |
copy repo\wcap-arm64.exe wiki | |
cd wiki | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit --all --amend --no-edit | |
git push --force-with-lease |