mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 06:16:04 +00:00
cache vcpkg buildtrees
This commit is contained in:
15
.github/workflows/linux.yml
vendored
15
.github/workflows/linux.yml
vendored
@@ -24,14 +24,23 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
run: bash ./scripts/debian-11/1-install-deps.sh
|
||||
|
||||
- name: Setup vcpkg
|
||||
uses: lukka/run-vcpkg@v11
|
||||
- name: Restore vcpkg
|
||||
id: cache-vcpkg-restore
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
runVcpkgInstall: true
|
||||
path: ./vcpkg/buildtrees
|
||||
key: ${{ runner.os }}-${{ github.job }}-vcpkg
|
||||
|
||||
- name: Create Build Environment
|
||||
run: bash ./scripts/debian-11/2-configure.sh '-DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake'
|
||||
|
||||
- name: Cache vcpkg
|
||||
id: cache-vcpkg
|
||||
uses: actions/cache/save@v3
|
||||
with:
|
||||
path: ./vcpkg/buildtrees
|
||||
key: ${{ steps.cache-vcpkg-restore.outputs.cache-primary-key }}
|
||||
|
||||
- name: Build Server
|
||||
run: bash ./scripts/debian-11/3-build.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user