Update action.yml

This commit is contained in:
Daniel Stankewitz 2022-07-26 14:17:06 +02:00 committed by GitHub
parent 6d5c133800
commit c3109dbae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
name: libvpx
inputs:
env:
refId:
type: string
required: true
config:
@ -16,21 +16,13 @@ runs:
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git clone --depth 1 -b v1.12.0 https://github.com/webmproject/libvpx.git vpx
- name: Check cache
id: libvpx-cache
uses: actions/cache@v3
with:
path: dist
key: libvpx-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('vpx') }}
git clone --depth 1 -b ${{ inputs.refId }} https://github.com/webmproject/libvpx.git vpx
- name: Set up MSYS2
if: steps.libvpx-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2
with:
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
path-type: inherit
- name: Build LibVpx
if: steps.libvpx-cache.outputs.cache-hit != 'true'
shell: cmd
env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -42,5 +34,5 @@ runs:
- name: Publish artifact
uses: actions/upload-artifact@v2
with:
name: libvpx-${{ inputs.env }}-${{ inputs.config }}
name: libvpx-${{ runner.os }}-${{ inputs.config }}
path: dist/libvpx.tgz