Run piracy check as early as possible #248
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: Build | |
| on: | |
| push: | |
| branches-ignore: | |
| - gh-pages | |
| pull_request: | |
| branches: | |
| - master | |
| defaults: | |
| run: | |
| shell: pwsh | |
| permissions: read-all | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: ["x86", "x64"] | |
| env: | |
| Configuration: Release | |
| Platform: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v4 | |
| - name: Checkout submodules | |
| run: git submodule update --init --recursive | |
| - name: Locate MSBuild | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| # As usual, obtained from: https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/5.0/releases.json | |
| dotnet-version: "6.0.100" # since we now use this | |
| - name: Log in to package source | |
| shell: pwsh | |
| run: | | |
| dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} ` | |
| --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Atlas-Rhythm/index.json" | |
| - name: Clear Nuget Cache | |
| run: dotnet nuget locals all --clear | |
| - name: Restore | |
| run: msbuild -t:Restore -m | |
| - name: Build | |
| run: msbuild -t:Build -m | |
| - name: Upload net472 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: BSIPA-net472-${{ env.Platform }} | |
| path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net472/ |