Update dependency ubuntu to v26 #954
Workflow file for this run
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-2022, ubuntu-24.04, macos-26] | |
| env: | |
| AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }} | |
| AZURE_SOURCE: ${{ secrets.AZURE_SOURCE }} | |
| AZURE_USER: ${{ secrets.AZURE_USER }} | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| GITHUB_PAT: ${{ secrets.GH_TOKEN }} | |
| GITTER_ROOM_ID: ${{ secrets.GITTER_ROOM_ID }} | |
| GITTER_TOKEN: ${{ secrets.GITTER_TOKEN }} | |
| GPR_PASSWORD: ${{ secrets.GPR_PASSWORD }} | |
| GPR_SOURCE: ${{ secrets.GPR_SOURCE }} | |
| GPR_USER: ${{ secrets.GPR_USER }} | |
| 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 }} | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Fetch all tags and branches | |
| run: git fetch --prune --unshallow | |
| # codecov and unittests need 2.1, gitversion needs 5.0 | |
| # GitReleasemanager needs 7.0 | |
| # builds run on 9.0 | |
| - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 | |
| with: | |
| dotnet-version: | | |
| 2.1 | |
| 3.1 | |
| 5.0 | |
| 6.0 | |
| 7.0 | |
| 9.0 | |
| 10.0 | |
| - name: Install mono on Linux | |
| 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: Insatall libgit on mac | |
| if: runner.os == 'macos' | |
| run: | | |
| brew install libgit2 | |
| # add a link, so libgit2sharp finds it - not sure if this is a wise move, but it works, for now. | |
| sudo mkdir -p /usr/local/lib | |
| sudo ln -sf "$(brew --prefix libgit2)/lib/libgit2.dylib" /usr/local/lib/libgit2-6777db8.dylib | |
| - name: Cache Tools | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 | |
| 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: Diagnostic | |
| cake-version: tool-manifest | |
| # currently, Cake.Recipe does not upload artifacts when run on gh-actions | |
| - name: Upload Issues | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| if-no-files-found: warn | |
| name: ${{ matrix.os }} Issues | |
| path: | | |
| BuildArtifacts/report.html | |
| BuildArtifacts/**/coverlet/*.xml | |
| - name: Upload Packages | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| if: runner.os == 'Windows' | |
| with: | |
| if-no-files-found: warn | |
| name: package | |
| path: BuildArtifacts/Packages/**/* |