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