Try to fix build by looking in different output directories. #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: main | |
| on: | |
| release: | |
| types: [created] | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write # for creating releases | |
| jobs: | |
| main: | |
| runs-on: windows-2019 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| architecture: | |
| - x86 | |
| - x64 | |
| - arm64 | |
| compiler: | |
| - vs2019 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: build | |
| shell: pwsh | |
| run: | | |
| Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted | |
| install-module pscx -scope CurrentUser -AllowClobber | |
| $x64param = if ('${{ matrix.architecture }}' -eq 'x64') { $true } else { $false } | |
| $arm64param = if ('${{ matrix.architecture }}' -eq 'arm64') { $true } else { $false } | |
| $vs2008param = if ('${{ matrix.compiler }}' -eq 'vs2008') { $true } else { $false } | |
| pwsh .\build.ps1 -x64:$x64param -arm64:$arm64param -vs2008:$vs2008param | |
| - name: upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: libraries-${{ matrix.architecture }}.zip | |
| path: dist/*.zip | |
| if-no-files-found: ignore | |
| - name: release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: dist/*.zip |