99 need_linux_image_rebuild :
1010 required : true
1111 type : boolean
12+ need_linux_vcpkg_rebuild :
13+ required : true
14+ type : boolean
1215 need_windows_vcpkg_rebuild :
1316 required : true
1417 type : boolean
@@ -35,13 +38,11 @@ jobs:
3538 strategy :
3639 fail-fast : false
3740 matrix :
38- distro : [ ubuntu20, ubuntu22, ubuntu24, fedora39, vcpkg, emscripten ]
41+ distro : [ ubuntu20, ubuntu22, ubuntu24, fedora39, emscripten ]
3942 arch : [ x64, arm64 ]
4043 exclude :
4144 - distro : fedora39
4245 arch : arm64
43- - distro : vcpkg
44- arch : arm64
4546 - distro : emscripten
4647 arch : x64
4748 include :
@@ -99,6 +100,46 @@ jobs:
99100 - name : Remove unused Docker data
100101 run : docker system prune --force --all --volumes
101102
103+ linux-vcpkg-build-upload :
104+ if : ${{ inputs.need_linux_vcpkg_rebuild }}
105+ timeout-minutes : 75
106+ strategy :
107+ fail-fast : false
108+ matrix :
109+ arch : [ x64 ]
110+ include :
111+ - arch : x64
112+ image-suffix : ' '
113+ os : ubuntu-latest
114+ - arch : arm64
115+ image-suffix : ' -arm64'
116+ os : [ self-hosted, linux-arm64, on-demand, meshinspector ]
117+ runs-on : ${{ matrix.os }}
118+ env :
119+ image : meshlib/meshlib-vcpkg${{ matrix.image-suffix }}:${{ inputs.docker_image_tag }}
120+ vcpkg_triplet : ${{ matrix.arch }}-linux-meshlib
121+ steps :
122+ - name : Remove unused Docker data
123+ run : docker system prune --force --all --volumes
124+
125+ - name : Checkout
126+ uses : actions/checkout@v4
127+
128+ - name : Login to DockerHub
129+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
130+ with :
131+ username : meshlib
132+ password : ${{ secrets.DOCKERHUB_TOKEN }}
133+
134+ - name : Build Linux vcpkg image
135+ run : docker build -f ./docker/vcpkgDockerfile -t ${{ env.image }} --build-arg VCPKG_TRIPLET=${{ env.vcpkg_triplet }} . --progress=plain
136+
137+ - name : Push Linux vcpkg image
138+ run : docker push ${{ env.image }}
139+
140+ - name : Remove unused Docker data
141+ run : docker system prune --force --all --volumes
142+
102143 windows-vcpkg-build-upload :
103144 if : ${{ inputs.need_windows_vcpkg_rebuild }}
104145 timeout-minutes : 240
0 commit comments