|
22 | 22 | matrix: |
23 | 23 | platform: [x86, x64, arm64] |
24 | 24 | configuration: [Light, Release] |
25 | | - image: [windows-2022] |
| 25 | + image: [windows-2025] |
26 | 26 | include: |
27 | 27 | - platform: x86 |
28 | 28 | setenv: amd64_x86 |
|
37 | 37 | steps: |
38 | 38 | - name: Checkout |
39 | 39 | uses: actions/checkout@v5 |
40 | | - - name: Git describe |
41 | | - id: ghd |
42 | | - uses: proudust/gh-describe@v2 |
43 | 40 | - name: Package name |
44 | 41 | shell: bash |
45 | 42 | run: | |
|
52 | 49 | else |
53 | 50 | SUFFIX="-${{ github.base_ref }}-pr${{ github.event.number }}" |
54 | 51 | fi |
55 | | - echo ARTIFACT=${{ steps.ghd.outputs.tag }}${SUFFIX}_${{ matrix.platform }}${{ matrix.configuration == 'Light' && '-Light' || '' }} >> $GITHUB_ENV |
| 52 | + echo "DIST_SUFFIX=${{ matrix.configuration == 'Light' && '-Light' || '' }}${SUFFIX}" >> $GITHUB_ENV |
56 | 53 | - name: Install CPDK |
57 | 54 | run: choco install windows-cryptographic-provider-development-kit -y > $null |
58 | 55 | - name: Setup dev env |
|
64 | 61 | uses: actions/cache@v4 |
65 | 62 | with: |
66 | 63 | path: ${{ github.workspace }}/vcpkg_cache |
67 | | - key: vcpkg-${{ matrix.configuration }}-${{ matrix.platform }}-${{ hashFiles('.github/workflows/windows.yml', '.github/vcpkg.json') }} |
| 64 | + key: vcpkg-${{ matrix.configuration }}-${{ matrix.platform }}-${{ hashFiles('.github/vcpkg.json') }} |
68 | 65 | - name: Prepare vcpkg |
69 | 66 | if: matrix.configuration == 'Release' |
70 | 67 | uses: lukka/run-vcpkg@v11 |
@@ -117,18 +114,16 @@ jobs: |
117 | 114 | echo "OPENPACE_DEF=/DENABLE_OPENPACE" >> $env:GITHUB_ENV |
118 | 115 | echo "OPENPACE_DIR=${env:GITHUB_WORKSPACE}\openpace-${env:OPENPACE_VER}" >> $env:GITHUB_ENV |
119 | 116 | - name: Build OpenSC |
120 | | - run: | |
121 | | - nmake /nologo /f Makefile.mak opensc.msi |
122 | | - move win32\OpenSC.msi OpenSC-${env:ARTIFACT}.msi |
| 117 | + run: nmake /nologo /f Makefile.mak opensc.msi |
123 | 118 | - name: Archive artifacts |
124 | | - uses: actions/upload-artifact@v4 |
| 119 | + uses: actions/upload-artifact@v5 |
125 | 120 | with: |
126 | 121 | name: msi_${{ matrix.image }}_${{ matrix.platform }}_${{ matrix.configuration }} |
127 | | - path: ./*.msi |
| 122 | + path: ./win32/*.msi |
128 | 123 | - name: Archive debug artifacts |
129 | | - uses: actions/upload-artifact@v4 |
| 124 | + uses: actions/upload-artifact@v5 |
130 | 125 | with: |
131 | | - name: OpenSC-${{ env.ARTIFACT }}-Debug |
| 126 | + name: debug_${{ matrix.image }}_${{ matrix.platform }}_${{ matrix.configuration }} |
132 | 127 | path: | |
133 | 128 | ./src/**/*.pdb |
134 | 129 | ./win32/*.pdb |
|
0 commit comments