diff --git a/.github/actions/libx264/action.yml b/.github/actions/libx264/action.yml index 1b9a712..4fa915a 100644 --- a/.github/actions/libx264/action.yml +++ b/.github/actions/libx264/action.yml @@ -1,7 +1,7 @@ name: libx264 inputs: - env: + refId: type: string required: true config: @@ -20,22 +20,14 @@ runs: uses: actions/checkout@v3 with: repository: mirror/x264 - ref: stable + ref: ${{ inputs.refId }} path: x264 - - name: Check cache - id: libx264-cache - uses: actions/cache@v3 - with: - path: dist - key: libx264-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x264') }} - name: Set up MSYS2 - if: steps.libx264-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 X264 - if: steps.libx264-cache.outputs.cache-hit != 'true' shell: cmd env: vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ @@ -47,5 +39,5 @@ runs: - name: Publish artifact uses: actions/upload-artifact@v2 with: - name: libx264-${{ inputs.env }}-${{ inputs.config }} + name: libx264-${{ runner.os }}-${{ inputs.config }} path: dist/libx264.tgz