downgrade to 2024.01.12 #47
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: vcpkg | |
on: [push, pull_request] | |
jobs: | |
job: | |
name: ${{ matrix.platform }}-${{ github.workflow }} | |
runs-on: ${{ matrix.runner }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-14-intel, macos-14-arm, windows-2022] | |
include: | |
- platform: macos-14-intel | |
runner: 'macos-13-large' | |
triplet: 'x64-osx-14' | |
- platform: macos-14-arm | |
runner: 'macos-13-xlarge' | |
triplet: 'arm64-osx-14' | |
- platform: windows-2022 | |
runner: 'windows-2022-xl8' | |
triplet: 'x64-windows' | |
env: | |
VCPKG_INSTALLED_DIR: '${{ github.workspace }}/deps/vcpkg_installed/${{ matrix.platform }}' | |
VCPKG_DEFAULT_TRIPLET: '${{ matrix.triplet }}' | |
VCPKG_OVERLAY_TRIPLETS: '${{ github.workspace }}/overlay/triplets' | |
VCPKG_OVERLAY_PORTS: '${{ github.workspace }}/overlay/ports' | |
steps: | |
- name: Setup XCode | |
if: runner.os == 'macOS' | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: Install missing dependencies | |
run: | | |
if [ "$RUNNER_OS" == "macOS" ]; then | |
brew install autoconf-archive automake libtool md4c | |
fi | |
shell: bash | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
submodules: 'recursive' | |
- name: Update cmake | |
uses: lukka/get-cmake@latest | |
- name: Run vcpkg | |
uses: lukka/run-vcpkg@v11 | |
with: | |
vcpkgDirectory: '${{ github.workspace }}/vcpkg' | |
vcpkgJsonGlob: 'vcpkg.json' | |
runVcpkgInstall: true | |
- name: Compress packages | |
run: | | |
tar -czpf '${{ github.workspace }}/${{ matrix.platform }}.tar.gz' -C '${{ github.workspace }}/deps/vcpkg_installed' '${{ matrix.platform }}' | |
- name: Upload packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: 'packages-${{ matrix.platform }}' | |
path: '${{ github.workspace }}/${{ matrix.platform }}.tar.gz' |