Pip #4
Workflow file for this run
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: π MacOS | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
matrix: | |
include: | |
- os: macos-13 | |
triplet: x64-osx-dynamic | |
- os: macos-14 | |
triplet: arm64-osx-dynamic | |
env: | |
buildtrees: /Users/runner/vcpkg-build | |
name: build (macos) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: π£ Checkout | |
uses: actions/checkout@v4 | |
- name: π© Install CMake and Ninja | |
uses: lukka/get-cmake@latest | |
- name: 𧽠Developer Command Prompt for Microsoft Visual C++ | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: π Checkout vcpkg | |
uses: actions/checkout@v4 | |
with: | |
repository: microsoft/vcpkg | |
ref: 345ac44ab8d6a16239d3af55df9608bf725e7a48 # TODO: can we have a canonical baseline for tests? | |
path: vcpkg | |
fetch-depth: 1 | |
- name: πΎ Bootstrap vcpkg | |
shell: powershell | |
run: | | |
PKG_SOURCE_USER=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 1) | |
./vcpkg/bootstrap-vcpkg.sh | |
.$(./vcpkg/vcpkg fetch nuget) sources add -Name ghpkg -Source "https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json" -UserName "$PKG_SOURCE_USER" -Password "${{ secrets.GITHUB_TOKEN }}" -StorePasswordInClearText | |
.$(./vcpkg/vcpkg fetch nuget) setapikey "${{ secrets.GITHUB_TOKEN }}" -Source "https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json" | |
echo "VCPKG_BINARY_SOURCES=clear;nuget,https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json,readwrite" >> $GITHUB_ENV | |
echo "PATH=$env:VCPKG_ROOT;$env:PATH" >> $GITHUB_ENV | |
echo "VCPKG_ROOT=$env:VCPKG_ROOT" >> $GITHUB_ENV | |
- name: π Build | |
run: | | |
VCPKG_OPTIONS="--overlay-ports="${{ github.workspace }}/ports" --triplet=${{ matrix.triplet }} --x-buildtrees-root=${{ env.buildtrees }}" | |
./vcpkg/vcpkg.exe install $VCPKG_OPTIONS py-pip | |
./vcpkg/vcpkg.exe install $VCPKG_OPTIONS py-sip | |
- name: π Upload logs | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: logs-${{ matrix.triplet }} | |
path: ${{ env.buildtrees }}/**/*.log |