Skip to content

Commit 1e89220

Browse files
committed
vcpkg: add ci job
1 parent 5bf01b0 commit 1e89220

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,41 @@ jobs:
238238
echo "${{ secrets.MYCI_REPO_SSH_KEY }}" > repo_key_rsa && chmod 600 repo_key_rsa
239239
myci-deploy-apt-ssh.sh --key repo_key_rsa --server gagis.hopto.org --repo cppfw/${{ matrix.os }} --distro ${{ matrix.codename }} --component main lib${PACKAGE_NAME}*_${PACKAGE_VERSION}_*.deb
240240
if: startsWith(github.ref, 'refs/tags/')
241+
##### vcpkg #####
242+
vcpkg:
243+
strategy:
244+
fail-fast: false
245+
matrix:
246+
include:
247+
- {os: debian, codename: bookworm, image_owner: }
248+
# - {os: debian, codename: bookworm, image_owner: i386/, labels: [i386,docker]}
249+
# - {os: debian, codename: bookworm, image_owner: , labels: [arm32,docker]}
250+
# - {os: debian, codename: bookworm, image_owner: , labels: [arm64,docker]}
251+
runs-on: ${{ (matrix.labels == '' && 'ubuntu-latest') || matrix.labels }}
252+
container: ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}
253+
name: vcpkg - linux | ${{ matrix.labels[0] }}
254+
steps:
255+
- name: add cppfw deb repo
256+
uses: myci-actions/add-deb-repo@main
257+
with:
258+
repo: deb https://gagis.hopto.org/repo/cppfw/${{ matrix.os }} ${{ matrix.codename }} main
259+
repo-name: cppfw
260+
keys-asc: https://gagis.hopto.org/repo/cppfw/pubkey.gpg
261+
install: myci cmake git
262+
- name: git clone
263+
uses: myci-actions/checkout@main
264+
- name: install vcpkg
265+
run:
266+
git clone https://github.com/microsoft/vcpkg.git vcpkg-installation
267+
(cd vcpkg-installation; ./bootstrap-vcpkg.sh)
268+
- name: prepare vcpkg port
269+
run:
270+
myci-vcpkg-prepare.sh --git-ref ${PACKAGE_VERSION}
271+
- name: deploy vcpkg port
272+
run:
273+
myci-deploy-vcpkg.sh --repo cppfw/vcpkg-repo --port-dir vcpkg/overlay/${PACKAGE_NAME}
274+
if: startsWith(github.ref, 'refs/tags/')
275+
241276
##### archlinux #####
242277
# archlinux:
243278
# strategy:

0 commit comments

Comments
 (0)