Update github/codeql-action digest to 7211b7c #346
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: | |
| - master | |
| - develop | |
| - "feature/**" | |
| - "release/**" | |
| - "hotfix/**" | |
| tags: | |
| - "*" | |
| paths-ignore: | |
| - "README.md" | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ windows-2025, ubuntu-24.04 ] | |
| env: | |
| AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }} | |
| AZURE_SOURCE: ${{ secrets.AZURE_SOURCE }} | |
| AZURE_USER: ${{ secrets.AZURE_USER }} | |
| GITHUB_PAT: ${{ secrets.GH_TOKEN }} | |
| GITTER_ROOM_ID: ${{ secrets.GITTER_ROOM_ID }} | |
| GPR_PASSWORD: ${{ secrets.GPR_PASSWORD }} | |
| GPR_SOURCE: ${{ secrets.GPR_SOURCE }} | |
| GPR_USER: ${{ secrets.GPR_USER }} | |
| GITTER_TOKEN: ${{ secrets.GITTER_TOKEN }} | |
| NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
| NUGET_SOURCE: "https://api.nuget.org/v3/index.json" | |
| TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} | |
| TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | |
| TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} | |
| TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} | |
| WYAM_ACCESS_TOKEN: ${{ secrets.WYAM_ACCESS_TOKEN }} | |
| WYAM_DEPLOY_BRANCH: "gh-pages" | |
| WYAM_DEPLOY_REMOTE: ${{ github.event.repository.html_url }} | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install dotnet | |
| uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5 | |
| with: | |
| dotnet-version: | | |
| 6.0.x | |
| 7.0.x | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| - name: Install mono | |
| if: runner.os == 'Linux' | |
| # check https://www.mono-project.com/download/stable/#download-lin | |
| run: | | |
| sudo apt install ca-certificates gnupg | |
| sudo gpg --homedir /tmp --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
| sudo chmod +r /usr/share/keyrings/mono-official-archive-keyring.gpg | |
| echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list | |
| sudo apt update | |
| sudo apt install -y mono-complete | |
| mono --version | |
| - name: Cache Tools | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | |
| with: | |
| path: tools | |
| key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }} | |
| - name: Build project | |
| uses: cake-build/cake-action@d218f1133bb74a1df0b08c89cfd8fc100c09e1a0 # v3 | |
| with: | |
| script-path: recipe.cake | |
| target: CI | |
| verbosity: Normal | |
| cake-version: tool-manifest | |
| # The demo/ folders exercise the just-built addin DLL under | |
| # Cake-major-matching cake.tool / Cake.Frosting / Cake.Sdk | |
| # versions. They run in their OWN tool/package context | |
| # (independent of recipe.cake's cake.tool, which is constrained | |
| # by Cake.Recipe's runtime). demo/script and demo/frosting | |
| # consume the addin from BuildArtifacts/temp/_PublishedLibraries/ | |
| # populated by DotNetCore-Pack; demo/sdk builds the addin from | |
| # source via the #:project directive in cake.cs. | |
| - name: Run demo/script | |
| if: success() | |
| shell: pwsh | |
| run: ./demo/script/build.ps1 | |
| - name: Run demo/frosting | |
| if: success() | |
| shell: pwsh | |
| run: ./demo/frosting/build.ps1 | |
| - name: Run demo/sdk | |
| if: success() | |
| shell: pwsh | |
| working-directory: ./demo/sdk | |
| run: dotnet cake.cs | |
| - name: Upload Issues-Report | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 | |
| with: | |
| if-no-files-found: warn | |
| name: ${{ matrix.os }} issues | |
| path: BuildArtifacts/report.html | |
| - name: Upload Packages | |
| if: runner.os == 'Windows' | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 | |
| with: | |
| if-no-files-found: warn | |
| name: package | |
| path: BuildArtifacts/Packages/**/* |