[libkineto] Create a new port with the latest commit (#303) #897
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: "Windows" | |
on: | |
push: | |
branches-ignore: | |
- docs | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
env: | |
VCPKG_ENABLE_METRICS: 0 | |
jobs: | |
overlay: | |
runs-on: "windows-latest" | |
strategy: | |
matrix: | |
include: | |
- vcpkg_tag: "2024.10.21" | |
vcpkg_commit: "10b7a178346f3f0abef60cecd5130e295afd8da4" | |
fail-fast: false | |
env: | |
VCPKG_FEATURE_FLAGS: "registries,binarycaching,manifests,versions" | |
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | |
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- uses: microsoft/setup-msbuild@v2 | |
with: | |
msbuild-architecture: x64 | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
- name: "Enalbe LongPath" | |
run: git config --system core.longpaths true | |
- uses: actions/cache@v4.1.2 | |
with: | |
key: "v2432-${{ runner.os }}-${{ matrix.vcpkg_tag }}" | |
path: | | |
${{ runner.temp }}/vcpkg-downloads | |
- name: "create cache folders" | |
shell: pwsh | |
run: | | |
New-Item -Type Directory -Force ${env:VCPKG_DOWNLOADS} | |
env: | |
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads" | |
- uses: lukka/run-vcpkg@v11.5 | |
name: "Run vcpkg(x64-windows)" | |
with: | |
vcpkgDirectory: "C:/vcpkg" | |
vcpkgGitCommitId: "${{ matrix.vcpkg_commit }}" | |
vcpkgJsonGlob: "test/vcpkg.json" | |
vcpkgConfigurationJsonGlob: "test/vcpkg-configuration.json" | |
runVcpkgInstall: true | |
runVcpkgFormatString: '[`install`, `--keep-going`, `--clean-buildtrees-after-build`, `--clean-packages-after-build`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `test`]' | |
env: | |
VCPKG_DEFAULT_TRIPLET: "x64-windows" | |
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }} | |
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads" |