Skip to content

Commit dbab145

Browse files
committed
Use registry submodule
1 parent 020198d commit dbab145

File tree

17 files changed

+24
-322
lines changed

17 files changed

+24
-322
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ concurrency:
1717
env:
1818
LLVM_VER: 17
1919
PYTHON_VER: 3.11
20+
VCPKG_REGISTRY_VERSION: v1.0.0
2021

2122
jobs:
2223
build:
@@ -30,6 +31,11 @@ jobs:
3031
packages: write
3132

3233
steps:
34+
- name: Setup deploy keys
35+
run: |
36+
eval $(ssh-agent -s)
37+
ssh-add - <<< '${{ secrets.MX_REGISTRY_KEY }}'
38+
3339
- name: Checkout repository
3440
uses: actions/checkout@v4
3541
with:
@@ -71,12 +77,23 @@ jobs:
7177
git clone https://github.com/microsoft/vcpkg $HOME/vcpkg
7278
$HOME/vcpkg/bootstrap-vcpkg.sh
7379
80+
- name: Preseed vcpkg cache
81+
run: |
82+
gh release download $VCPKG_REGISTRY_VERSION vcpkg-binary-cache.tar.bz2 --repo trailofbits/multiplier-vcpkg-registry
83+
tar xjf vcpkg-binary-cache.tar.bz2
84+
rm vcpkg-binary-cache.tar.bz2
85+
env:
86+
GITHUB_TOKEN: ${{ secrets.MX_REGISTRY_RELEASES_TOKEN }}
87+
7488
- name: Cache vcpkg binaries
7589
id: cache-vcpkg
7690
uses: actions/cache@v4
7791
with:
7892
path: $GITHUB_WORKSPACE/vcpkg-binary-cache
79-
key: ${{ runner.os }}-${{ hashFiles('vcpkg-binary-cache/**/*') }}
93+
key: ${{ runner.os }}-${{ hashFiles('vcpkg-registry/ports/**/*') }}
94+
restore-keys: |
95+
${{ runner.os }}-${{ hashFiles('vcpkg-registry/ports/**/*') }}
96+
${{ runner.os }}-
8097
8198
- name: Build
8299
run: |

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "vcpkg-registry"]
2+
path = vcpkg-registry
3+
url = git@github.com:trailofbits/multiplier-vcpkg-registry.git

custom-ports/capnproto/portfile.cmake

Lines changed: 0 additions & 34 deletions
This file was deleted.

custom-ports/capnproto/vcpkg.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

custom-ports/gap/portfile.cmake

Lines changed: 0 additions & 27 deletions
This file was deleted.

custom-ports/gap/vcpkg.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

custom-ports/llvm/portfile.cmake

Lines changed: 0 additions & 108 deletions
This file was deleted.

custom-ports/llvm/vcpkg.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

custom-ports/pasta/portfile.cmake

Lines changed: 0 additions & 26 deletions
This file was deleted.

custom-ports/pasta/vcpkg.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)