mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
Add Vcpkg binary caching
Speed up GitHub Actions CI using Vcpkg binary caching feature. Dependencies are built once and on next run restored from GitHub packages.
This commit is contained in:
parent
0c10913b92
commit
759592e4df
15
.github/workflows/action.yml
vendored
15
.github/workflows/action.yml
vendored
@ -189,6 +189,20 @@ jobs:
|
|||||||
if: startsWith(matrix.os,'ubuntu')
|
if: startsWith(matrix.os,'ubuntu')
|
||||||
run: sudo apt-get update -y && sudo apt-get install -y autogen ninja-build libogg-dev libvorbis-dev libflac-dev libopus-dev libasound2-dev libsqlite3-dev libspeex-dev libmp3lame-dev libmpg123-dev
|
run: sudo apt-get update -y && sudo apt-get install -y autogen ninja-build libogg-dev libvorbis-dev libflac-dev libopus-dev libasound2-dev libsqlite3-dev libspeex-dev libmp3lame-dev libmpg123-dev
|
||||||
|
|
||||||
|
- name: Setup NuGet Credentials
|
||||||
|
env:
|
||||||
|
VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite'
|
||||||
|
if: startsWith(matrix.os,'windows')
|
||||||
|
shell: 'bash'
|
||||||
|
run: >
|
||||||
|
`vcpkg fetch nuget | tail -n 1`
|
||||||
|
sources add
|
||||||
|
-source "https://nuget.pkg.github.com/libsndfile/index.json"
|
||||||
|
-storepasswordincleartext
|
||||||
|
-name "GitHub"
|
||||||
|
-username "evpobr"
|
||||||
|
-password "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
- name: Configure, build and test with Autotools
|
- name: Configure, build and test with Autotools
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.cc }}
|
CC: ${{ matrix.cc }}
|
||||||
@ -206,6 +220,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CC: ${{ matrix.cc }}
|
CC: ${{ matrix.cc }}
|
||||||
CXX: ${{ matrix.cxx }}
|
CXX: ${{ matrix.cxx }}
|
||||||
|
VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite'
|
||||||
if: startsWith(matrix.build-system,'cmake')
|
if: startsWith(matrix.build-system,'cmake')
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
|
Loading…
Reference in New Issue
Block a user