|
1 | | -name: main |
2 | | - |
3 | | -on: |
4 | | - release: |
5 | | - types: [created] |
6 | | - push: |
7 | | - pull_request: |
8 | | - workflow_dispatch: |
9 | | - |
10 | | -concurrency: |
11 | | - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} |
12 | | - cancel-in-progress: true |
13 | | - |
14 | | -permissions: |
15 | | - contents: write # for creating releases |
16 | | - |
17 | | -jobs: |
18 | | - main: |
19 | | - runs-on: windows-2019 |
20 | | - |
21 | | - strategy: |
22 | | - fail-fast: false |
23 | | - matrix: |
24 | | - architecture: |
25 | | - - x86 |
26 | | - - x64 |
27 | | - - arm64 |
28 | | - compiler: |
29 | | - - vs2019 |
30 | | - |
31 | | - steps: |
32 | | - |
33 | | - - name: checkout |
34 | | - uses: actions/checkout@v4 |
35 | | - with: |
36 | | - submodules: true |
37 | | - |
38 | | - - name: build |
39 | | - shell: pwsh |
40 | | - run: | |
41 | | - cd libiconv |
42 | | - git apply ..\libiconv.patch |
43 | | - cd .. |
44 | | - Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted |
45 | | - install-module pscx -scope CurrentUser -AllowClobber |
46 | | - $x64param = if ('${{ matrix.architecture }}' -eq 'x64') { $true } else { $false } |
47 | | - $arm64param = if ('${{ matrix.architecture }}' -eq 'arm64') { $true } else { $false } |
48 | | - $vs2008param = if ('${{ matrix.compiler }}' -eq 'vs2008') { $true } else { $false } |
49 | | - pwsh .\build.ps1 -x64:$x64param -arm64:$arm64param -vs2008:$vs2008param |
50 | | -
|
51 | | - - name: upload |
52 | | - uses: actions/upload-artifact@v4 |
53 | | - with: |
54 | | - name: libraries-${{ matrix.architecture }}.zip |
55 | | - path: dist/*.zip |
56 | | - if-no-files-found: ignore |
57 | | - |
58 | | - - name: release |
59 | | - uses: softprops/action-gh-release@v2 |
60 | | - if: startsWith(github.ref, 'refs/tags/') |
61 | | - with: |
62 | | - files: dist/*.zip |
| 1 | +name: main |
| 2 | + |
| 3 | +on: |
| 4 | + release: |
| 5 | + types: [created] |
| 6 | + push: |
| 7 | + pull_request: |
| 8 | + workflow_dispatch: |
| 9 | + |
| 10 | +concurrency: |
| 11 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} |
| 12 | + cancel-in-progress: true |
| 13 | + |
| 14 | +permissions: |
| 15 | + contents: write # for creating releases |
| 16 | + |
| 17 | +jobs: |
| 18 | + main: |
| 19 | + runs-on: windows-2022 |
| 20 | + |
| 21 | + strategy: |
| 22 | + fail-fast: false |
| 23 | + matrix: |
| 24 | + architecture: |
| 25 | + - x86 |
| 26 | + - x64 |
| 27 | + - arm64 |
| 28 | + compiler: |
| 29 | + - vs2019 |
| 30 | + |
| 31 | + steps: |
| 32 | + |
| 33 | + - name: checkout |
| 34 | + uses: actions/checkout@v4 |
| 35 | + with: |
| 36 | + submodules: true |
| 37 | + |
| 38 | + - name: build |
| 39 | + shell: pwsh |
| 40 | + run: | |
| 41 | + cd libiconv |
| 42 | + git apply ..\libiconv.patch |
| 43 | + cd .. |
| 44 | + Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted |
| 45 | + install-module pscx -scope CurrentUser -AllowClobber |
| 46 | + $x64param = if ('${{ matrix.architecture }}' -eq 'x64') { $true } else { $false } |
| 47 | + $arm64param = if ('${{ matrix.architecture }}' -eq 'arm64') { $true } else { $false } |
| 48 | + $vs2008param = if ('${{ matrix.compiler }}' -eq 'vs2008') { $true } else { $false } |
| 49 | + pwsh .\build.ps1 -x64:$x64param -arm64:$arm64param -vs2008:$vs2008param |
| 50 | +
|
| 51 | + - name: upload |
| 52 | + uses: actions/upload-artifact@v4 |
| 53 | + with: |
| 54 | + name: libraries-${{ matrix.architecture }}.zip |
| 55 | + path: dist/*.zip |
| 56 | + if-no-files-found: ignore |
| 57 | + |
| 58 | + - name: release |
| 59 | + uses: softprops/action-gh-release@v2 |
| 60 | + if: startsWith(github.ref, 'refs/tags/') |
| 61 | + with: |
| 62 | + files: dist/*.zip |
0 commit comments