-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
47 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,30 +38,14 @@ jobs: | |
- "Release" | ||
generators: | ||
- "Ninja" | ||
vcpkg_libs: | ||
- glog breakpad benchmark gtest openssl[tools] curl[openssl,brotli,c-ares,http2,tool] | ||
|
||
steps: | ||
- name: Restore windows vcpkg | ||
if: startsWith(matrix.os, 'windows') | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: C:\vcpkg\installed | ||
key: ${{ runner.os }}-vcpkg-installed-${{ matrix.os }} | ||
- name: Restore macos or ubuntu vcpkg | ||
if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: /usr/local/share/vcpkg/installed | ||
key: ${{ runner.os }}-vcpkg-installed-${{ matrix.os }} | ||
|
||
- name: Install dependencies on windows | ||
if: startsWith(matrix.os, 'windows') | ||
run: | | ||
choco install ninja | ||
ninja --version | ||
cmake --version | ||
vcpkg install ${{ matrix.vcpkg_libs }} --triplet x64-windows | ||
- name: Install dependencies on macos | ||
if: startsWith(matrix.os, 'macos') | ||
shell: bash | ||
|
@@ -70,7 +54,6 @@ jobs: | |
ninja --version | ||
cmake --version | ||
clang --version | ||
vcpkg install ${{ matrix.vcpkg_libs }} --triplet x64-osx | ||
- name: Install dependencies on ubuntu | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
|
@@ -79,12 +62,27 @@ jobs: | |
ninja --version | ||
cmake --version | ||
gcc --version | ||
vcpkg install ${{ matrix.vcpkg_libs }} --triplet x64-linux | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Update vcpkg manifest baseline | ||
shell: bash | ||
run: | | ||
vcpkg x-update-baseline | ||
- name: Cache vcpkg | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ github.workspace }}/build/vcpkg_installed | ||
key: ${{ runner.os }}-vcpkg-installed-${{ matrix.os }}-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-vcpkg-installed-${{ matrix.os }}- | ||
${{ runner.os }}-vcpkg-installed- | ||
${{ runner.os }}- | ||
save-always: true | ||
|
||
- name: Enable Developer Command Prompt | ||
if: startsWith(matrix.os, 'windows') | ||
uses: ilammy/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
name: Cleanup caches by a branch | ||
on: | ||
# 每周一 0 点触发 | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ endif() | |
|
||
# 设定工程名 | ||
project( | ||
Cpp-Example | ||
Cpp-Examples | ||
VERSION 0.1 | ||
LANGUAGES C CXX) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", | ||
"name": "cpp-examples", | ||
"version": "0.0.1", | ||
"description": "manifest", | ||
"dependencies": [ | ||
"glog", | ||
"breakpad", | ||
"benchmark", | ||
"gtest", | ||
{ | ||
"name": "openssl", | ||
"features": [ | ||
"tools" | ||
] | ||
}, | ||
{ | ||
"name": "curl", | ||
"features": [ | ||
"openssl", | ||
"brotli", | ||
"c-ares", | ||
"http2", | ||
"tool" | ||
] | ||
} | ||
], | ||
"builtin-baseline": "3c76dc55f8bd2b7f4824bcd860055094bfbbb9ea" | ||
} |