CI: Exclude vcpkg_installed in linux CI to speed up artifact uploading. #14
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
name: build-asy-cxx | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "master" | |
- "a/*" | |
push: | |
branches: | |
- msvc-* | |
jobs: | |
configure-linux-release-x64: | |
runs-on: "ubuntu-22.04" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: ./.github/actions/initialize-linux-env | |
- run: | | |
VCPKG_ROOT="$VCPKG_INSTALLATION_ROOT" \ | |
cmake --preset linux/release | |
- name: tar+gz cmake configuration | |
run: tar -czf cmake-linux-cfg-artifact.tar.gz --exclude='vcpkg_installed' cmake-build-linux/release | |
- name: Upload configuration artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cmake-linux-x64-release-cfg-tgz | |
path: cmake-linux-cfg-artifact.tar.gz | |
build-linux-release-x64: | |
needs: configure-linux-release-x64 | |
runs-on: "ubuntu-22.04" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: ./.github/actions/initialize-linux-env | |
- name: Download configuration artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: cmake-linux-x64-release-cfg-tgz | |
- name: Untar configuration artifact | |
run: tar -xzf cmake-linux-cfg-artifact.tar.gz | |
- run: cmake --build --preset linux/release --target asy-with-basefiles -j | |
- name: Archive | |
uses: actions/upload-artifact@v3 | |
with: | |
name: asy-buildfiles | |
path: | | |
cmake-build-linux/release/asy | |
cmake-build-linux/release/base | |
cmake-build-linux/release/CTestTestfile.cmake |