Update action.yml
This commit is contained in:
parent
2744a17ea0
commit
29d3ae53b9
12
.github/actions/libopus/action.yml
vendored
12
.github/actions/libopus/action.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: libopus
|
name: libopus
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
env:
|
refId:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
config:
|
config:
|
||||||
@ -22,20 +22,12 @@ runs:
|
|||||||
repository: xiph/opus
|
repository: xiph/opus
|
||||||
ref: v1.3.1
|
ref: v1.3.1
|
||||||
path: opus
|
path: opus
|
||||||
- name: Check cache
|
|
||||||
id: libopus-cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: dist
|
|
||||||
key: libopus-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('opus') }}
|
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
if: steps.libopus-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 OPUS
|
- name: Build OPUS
|
||||||
if: steps.libopus-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\
|
||||||
@ -50,5 +42,5 @@ runs:
|
|||||||
- name: Publish artifact
|
- name: Publish artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: libopus-${{ inputs.env }}-${{ inputs.config }}
|
name: libopus-${{ runner.os }}-${{ inputs.config }}
|
||||||
path: dist/libopus.tgz
|
path: dist/libopus.tgz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user