From 649f8542d476a936b65420165e2c9b4daaad02d9 Mon Sep 17 00:00:00 2001 From: Daniel Stankewitz Date: Tue, 26 Jul 2022 14:34:22 +0200 Subject: [PATCH] Update action.yml --- .github/actions/libzimg/action.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/actions/libzimg/action.yml b/.github/actions/libzimg/action.yml index 5b82729..51d39a8 100644 --- a/.github/actions/libzimg/action.yml +++ b/.github/actions/libzimg/action.yml @@ -1,7 +1,7 @@ name: libzimg inputs: - env: + refId: type: string required: true config: @@ -20,22 +20,14 @@ runs: uses: actions/checkout@v3.0.0 with: repository: sekrit-twc/zimg - ref: release-3.0.4 + ref: ${{ inputs.refId }} path: zimg - - name: Check cache - id: libzimg-cache - uses: actions/cache@v3 - with: - path: dist - key: libzimg-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('zimg') }} - name: Set up MSYS2 - if: steps.libzimg-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 ZIMG - if: steps.libzimg-cache.outputs.cache-hit != 'true' shell: cmd env: vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ @@ -48,5 +40,5 @@ runs: - name: Publish artifact uses: actions/upload-artifact@v2 with: - name: libzimg-${{ inputs.env }}-${{ inputs.config }} + name: libzimg-${{ runner.os }}-${{ inputs.config }} path: dist/libzimg.tgz