Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zxing-cpp/.github/workflows/publish-winrt.yml @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 name: publish-winrt | |
| 2 on: | |
| 3 release: | |
| 4 types: [published] | |
| 5 | |
| 6 workflow_dispatch: | |
| 7 inputs: | |
| 8 publish: | |
| 9 description: 'Publish package (y/n)' | |
| 10 default: 'n' | |
| 11 package_version: | |
| 12 description: 'Package version (major.minor.patch)' | |
| 13 default: '1.0.0' | |
| 14 | |
| 15 jobs: | |
| 16 build: | |
| 17 runs-on: windows-latest | |
| 18 strategy: | |
| 19 matrix: | |
| 20 target: [Win32, x64, ARM64] | |
| 21 | |
| 22 steps: | |
| 23 - uses: actions/checkout@v4 | |
| 24 | |
| 25 - name: Create build environment | |
| 26 shell: cmd | |
| 27 run: | | |
| 28 cmake -E make_directory ${{runner.workspace}}/build | |
| 29 cmake -E copy_directory ${{github.workspace}}/wrappers/winrt/UAP ${{runner.workspace}}/build/dist/UAP | |
| 30 cmake -E copy_directory ${{github.workspace}}/wrappers/winrt/nuget ${{runner.workspace}}/build/dist/nuget | |
| 31 | |
| 32 - name: Configure CMake | |
| 33 shell: cmd | |
| 34 working-directory: ${{runner.workspace}}/build | |
| 35 run: cmake ${{github.workspace}}/wrappers/winrt -A ${{matrix.target}} -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DCMAKE_BUILD_TYPE=Release -DBUILD_WINRT_LIB=ON -DZXING_EXAMPLES=OFF -DZXING_BLACKBOX_TESTS=OFF -DEXTENSION_SDK_OUTPUT=dist/UAP/v0.8.0.0/ExtensionSDKs/ZXingWinRT/1.0.0.0 | |
| 36 | |
| 37 - name: Build | |
| 38 shell: cmd | |
| 39 working-directory: ${{runner.workspace}}/build | |
| 40 run: cmake --build . -j8 --config Release | |
| 41 | |
| 42 - uses: actions/upload-artifact@v4 | |
| 43 with: | |
| 44 name: winrt-${{matrix.target}}-artifacts | |
| 45 path: ${{runner.workspace}}/build/dist | |
| 46 | |
| 47 publish-package: | |
| 48 needs: build | |
| 49 runs-on: windows-latest | |
| 50 if: ${{ github.event_name == 'release' || github.event.inputs.publish == 'y' }} | |
| 51 steps: | |
| 52 - uses: actions/download-artifact@v4 | |
| 53 with: | |
| 54 name: winrt-Win32-artifacts | |
| 55 - uses: actions/download-artifact@v4 | |
| 56 with: | |
| 57 name: winrt-x64-artifacts | |
| 58 - uses: actions/download-artifact@v4 | |
| 59 with: | |
| 60 name: winrt-ARM64-artifacts | |
| 61 | |
| 62 - name: Create NuGet package | |
| 63 if: ${{ github.event_name != 'release' }} | |
| 64 shell: cmd | |
| 65 run: nuget pack -Version ${{ github.event.inputs.package_version }} -OutputFileNamesWithoutVersion nuget/ZXingWinRT.nuspec | |
| 66 | |
| 67 - name: Create NuGet package | |
| 68 if: ${{ github.event_name == 'release' }} | |
| 69 shell: bash | |
| 70 env: | |
| 71 RELEASE_TAG_NAME: ${{ github.event.release.tag_name }} | |
| 72 run: nuget pack -Version ${RELEASE_TAG_NAME:1} -OutputFileNamesWithoutVersion nuget/ZXingWinRT.nuspec | |
| 73 | |
| 74 - name: Publish NuGet package | |
| 75 shell: cmd | |
| 76 run: nuget push huycn.zxingcpp.winrt.nupkg -ApiKey ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json | |
| 77 | |
| 78 - uses: actions/upload-artifact@v4 | |
| 79 with: | |
| 80 name: nuget-package | |
| 81 path: huycn.zxingcpp.winrt.nupkg | |
| 82 |
