aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-12 23:00:12 +0800
committercrupest <crupest@outlook.com>2021-04-12 23:00:12 +0800
commit01bbdbe1420c1da4e9bd9595582a9e2d97f32a85 (patch)
tree8dcdebf81cc9185bc148c1cd3572e8066cdb8cb1 /.github/workflows
parent4bc40b874d63442faf42fecc789f15db0a80e440 (diff)
downloadcru-01bbdbe1420c1da4e9bd9595582a9e2d97f32a85.tar.gz
cru-01bbdbe1420c1da4e9bd9595582a9e2d97f32a85.tar.bz2
cru-01bbdbe1420c1da4e9bd9595582a9e2d97f32a85.zip
...
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml24
1 files changed, 8 insertions, 16 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3aa088a5..d970e264 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,6 +14,9 @@ on:
- "drafts/**"
- "**/README.md"
+env:
+ VCPKG_FEATURE_FLAGS: manifests
+
jobs:
build:
name: Build
@@ -22,27 +25,16 @@ jobs:
matrix:
buildConfiguration: [Debug, Release]
architecture: [x86, x64]
- include:
- - architecture: x86
- triplet: x86-windows
- - architecture: x64
- triplet: x64-windows
fail-fast: true
- env:
- vcpkgPackages: "gtest fmt ms-gsl"
-
steps:
- uses: actions/checkout@v2
- with:
- submodules: true
- - name: Restore artifacts, or run vcpkg, build and cache artifacts
- uses: lukka/run-vcpkg@v6
- id: runvcpkg
+ - name: Restore Cache
+ uses: actions/cache@v2
with:
- vcpkgArguments: "${{ env.vcpkgPackages }}"
- vcpkgTriplet: "${{ matrix.triplet }}"
+ path: vcpkg_installed
+ key: vcpkg-${{ runner.os }}
- name: Run build script
- run: python tools\win_build.py -a ${{ matrix.architecture }} -c ${{ matrix.buildConfiguration }} --skip-install-packages
+ run: python tools\win_build.py -a ${{ matrix.architecture }} -c ${{ matrix.buildConfiguration }}