mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-23 16:36:49 +00:00
try using x-gha
This commit is contained in:
20
.github/workflows/linux.yml
vendored
20
.github/workflows/linux.yml
vendored
@@ -2,6 +2,9 @@ name: Linux
|
|||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
|
env:
|
||||||
|
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
debian-11-build:
|
debian-11-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -24,23 +27,16 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: bash ./scripts/debian-11/1-install-deps.sh
|
run: bash ./scripts/debian-11/1-install-deps.sh
|
||||||
|
|
||||||
- name: Restore vcpkg
|
- name: Export GitHub Actions cache environment variables
|
||||||
id: cache-vcpkg-restore
|
uses: actions/github-script@v6
|
||||||
uses: actions/cache/restore@v3
|
|
||||||
with:
|
with:
|
||||||
path: ./vcpkg/buildtrees
|
script: |
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('vcpkg.json') }}-vcpkg
|
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
|
||||||
|
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
|
||||||
|
|
||||||
- name: Create Build Environment
|
- name: Create Build Environment
|
||||||
run: bash ./scripts/debian-11/2-configure.sh '-DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake'
|
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
|
- name: Build Server
|
||||||
run: bash ./scripts/debian-11/3-build.sh
|
run: bash ./scripts/debian-11/3-build.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user