From c3109dbae133d719ff8693f2fc0859d667898e2e Mon Sep 17 00:00:00 2001 From: Daniel Stankewitz Date: Tue, 26 Jul 2022 14:17:06 +0200 Subject: [PATCH] Update action.yml --- .github/actions/libvpx/action.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/actions/libvpx/action.yml b/.github/actions/libvpx/action.yml index 0125ebd..cc21687 100644 --- a/.github/actions/libvpx/action.yml +++ b/.github/actions/libvpx/action.yml @@ -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