Skip to content

use vcpkg caching

use vcpkg caching #5

Workflow file for this run

name: Linux Clang Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Common Setup
uses: ./.github/actions/linux-setup
with:
buildfolder: out/build/Clang/Release
compiler: clang
- name: Configure CMake without coverage
run: cmake --preset linux-clang-release
- name: Build
run: cmake --build --preset linux-clang-release
- name: Install
run: cmake --build --preset linux-clang-release --target install
- name: Package with cpack
run: |
pushd out/build/Clang/Release
cpack -G TGZ
popd
shell: bash
- name: Find CPack Artifact
run: |
ARTIFACT_PATH=$(ls out/build/Clang/Release/*.tar.gz)
echo "ARTIFACT_PATH=$ARTIFACT_PATH" >> $GITHUB_ENV
shell: bash
- name: Upload CPack Artifact
uses: actions/upload-artifact@v3
with:
name: cpack-artifact
path: ${{ env.ARTIFACT_PATH }}