6363 cd /Library
6464 zip -q -r ${OLDPWD}/libdigidocpp.${{ matrix.target }}.zip libdigidocpp.*
6565 - name : Archive artifacts
66- uses : actions/upload-artifact@v4
66+ uses : actions/upload-artifact@v5
6767 with :
6868 name : ${{ matrix.target }}
6969 path : |
@@ -84,32 +84,24 @@ jobs:
8484 steps :
8585 - name : Checkout
8686 uses : actions/checkout@v5
87- - name : Expose Android NDK env
88- shell : bash
89- run : |
90- echo "ANDROID_NDK_HOME=$ANDROID_NDK_LATEST_HOME" >> "$GITHUB_ENV"
91- echo "ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME" >> "$GITHUB_ENV"
9287 - name : Cache vcpkg
9388 uses : actions/cache@v4
9489 with :
9590 path : ${{ github.workspace }}/vcpkg_cache
9691 key : vcpkg-${{ matrix.target }}-${{ hashFiles('vcpkg.json', 'vcpkg-ports/**') }}
97- - name : Prepare vcpkg
98- uses : lukka/run-vcpkg@v11
99- with :
100- vcpkgJsonGlob : ./vcpkg.json
101- runVcpkgInstall : true
92+ - name : Build
10293 env :
10394 VCPKG_BINARY_SOURCES : clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
104- VCPKG_DEFAULT_TRIPLET : ${{ matrix.triplet }}
105- - name : Build
10695 run : |
96+ export VCPKG_ROOT=$VCPKG_INSTALLATION_ROOT
97+ export ANDROID_NDK_HOME=$ANDROID_NDK_LATEST_HOME
98+ export ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME
10799 cmake --preset ${{ matrix.target }} "-GUnix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo
108100 cmake --build --preset ${{ matrix.target }}
109101 cmake --build --preset ${{ matrix.target }} --target install/strip
110102 zip -q -r libdigidocpp.${{ matrix.target }}.zip libdigidocpp.${{ matrix.target }}
111103 - name : Archive artifacts
112- uses : actions/upload-artifact@v4
104+ uses : actions/upload-artifact@v5
113105 with :
114106 name : ${{ matrix.target }}
115107 path : |
@@ -120,7 +112,7 @@ jobs:
120112 container : fedora:${{ matrix.container }}
121113 strategy :
122114 matrix :
123- container : [41, 42, 43, rawhide]
115+ container : [42, 43, rawhide]
124116 steps :
125117 - name : Install Deps
126118 run : |
@@ -134,7 +126,7 @@ jobs:
134126 cmake --build build
135127 cmake --build build --target package
136128 - name : Archive artifacts
137- uses : actions/upload-artifact@v4
129+ uses : actions/upload-artifact@v5
138130 with :
139131 name : fedora_${{ matrix.container }}
140132 path : build/libdigidocpp*.rpm
@@ -177,7 +169,7 @@ jobs:
177169 - name : Lintian
178170 run : lintian *.deb;
179171 - name : Archive artifacts
180- uses : actions/upload-artifact@v4
172+ uses : actions/upload-artifact@v5
181173 with :
182174 name : ${{ matrix.dist }}_${{ matrix.ver }}_${{ matrix.arch }}
183175 path : libdigidocpp*.*
@@ -206,16 +198,6 @@ jobs:
206198 with :
207199 path : ${{ github.workspace }}/vcpkg_cache
208200 key : vcpkg-${{ matrix.toolset }}-${{ matrix.platform }}-${{ hashFiles('vcpkg.json', 'vcpkg-ports/**') }}
209- - name : Prepare vcpkg
210- uses : lukka/run-vcpkg@v11
211- with :
212- vcpkgJsonGlob : ./vcpkg.json
213- runVcpkgInstall : true
214- runVcpkgFormatString : " [`install`, `--recurse`, `--clean-after-build`, `--x-install-root`, `$[env.VCPKG_INSTALLED_DIR]`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `tests`]"
215- env :
216- VCPKG_BINARY_SOURCES : clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
217- VCPKG_DEFAULT_TRIPLET : ${{ matrix.platform }}-windows
218- VCPKG_INSTALLED_DIR : ${{ github.workspace }}/vcpkg_installed_${{ matrix.platform }}
219201 - name : Install dependencies
220202 run : winget install --silent --accept-source-agreements --accept-package-agreements swig doxygen
221203 - uses : actions/setup-java@v4
@@ -228,14 +210,17 @@ jobs:
228210 python-version : 3.12
229211 architecture : ${{ matrix.platform }}
230212 - name : Build
213+ env :
214+ VCPKG_BINARY_SOURCES : clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
231215 run : |
232216 $swig = (Get-Item "$env:LOCALAPPDATA\Microsoft\WinGet\Links\swig.exe").Target
233217 & "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvarsall.bat" ${{ matrix.setenv }} "&&" pwsh build.ps1 `
218+ -vcpkg "C:/vcpkg/vcpkg.exe" `
234219 -swig $swig `
235220 -doxygen "C:/Program files/doxygen/bin/doxygen.exe" `
236221 -boost
237222 - name : Archive artifacts
238- uses : actions/upload-artifact@v4
223+ uses : actions/upload-artifact@v5
239224 with :
240225 name : msi_${{ matrix.toolset }}_${{ matrix.platform }}
241226 path : ./*.msi
0 commit comments