Skip to content

Commit 246a8fb

Browse files
committed
(build) Further tweaks to workflow
This time, things aren't building on the Linux build runner, so hoping that the addition of the new step to install libgit-dev will help.
1 parent 16dc739 commit 246a8fb

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
jobs:
1818
build:
1919
runs-on: ${{ matrix.os }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
2021
strategy:
2122
matrix:
2223
os: [windows-2022, ubuntu-22.04, macos-12]
@@ -26,11 +27,9 @@ jobs:
2627
AZURE_SOURCE: ${{ secrets.AZURE_SOURCE }}
2728
AZURE_USER: ${{ secrets.AZURE_USER }}
2829
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
29-
GITTER_ROOM_ID: ${{ secrets.GITTER_ROOM_ID }}
3030
GPR_PASSWORD: ${{ secrets.GPR_PASSWORD }}
3131
GPR_SOURCE: ${{ secrets.GPR_SOURCE }}
3232
GPR_USER: ${{ secrets.GPR_USER }}
33-
GITTER_TOKEN: ${{ secrets.GITTER_TOKEN }}
3433
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
3534
NUGET_SOURCE: "https://api.nuget.org/v3/index.json"
3635
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
@@ -40,19 +39,25 @@ jobs:
4039
WYAM_ACCESS_TOKEN: ${{ secrets.WYAM_ACCESS_TOKEN }}
4140
WYAM_DEPLOY_BRANCH: "gh-pages"
4241
WYAM_DEPLOY_REMOTE: ${{ github.event.repository.html_url }}
42+
4343
steps:
4444
- name: Checkout the repository
45-
uses: actions/checkout@v3
45+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
4646

4747
- name: Fetch all tags and branches
4848
run: git fetch --prune --unshallow
4949

5050
- name: Cache Tools
51-
uses: actions/cache@v3
51+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
5252
with:
5353
path: tools
5454
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake', '.config/dotnet-tools.json') }}
5555

56+
# install libgit2-dev on ubuntu, so libgit2sharp works
57+
- name: Install libgit-dev
58+
if: runner.os == 'Linux'
59+
run: sudo apt-get install -y libgit2-dev
60+
5661
- name: Setup required dotnet versions
5762
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
5863
with:
@@ -65,24 +70,24 @@ jobs:
6570
8.0.x
6671
6772
- name: Build project
68-
uses: cake-build/cake-action@v1
73+
uses: cake-build/cake-action@1223b6fa067ad192159f43b50cd4f953679b0934 # v2.0.0
6974
with:
7075
script-path: recipe.cake
7176
target: CI
7277
verbosity: Normal
73-
cake-version: 0.38.5
74-
cake-bootstrap: true
78+
cake-version: tool-manifest
7579

7680
- name: Upload Issues-Report
77-
uses: actions/upload-artifact@v3
81+
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
7882
with:
7983
if-no-files-found: warn
80-
name: issues
84+
name: ${{ matrix.os }} Issues
8185
path: BuildArtifacts/report.html
8286

8387
- name: Upload Packages
84-
uses: actions/upload-artifact@v3
88+
if: runner.os == 'Windows'
89+
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
8590
with:
8691
if-no-files-found: warn
8792
name: package
88-
path: BuildArtifacts/Packages/**/*
93+
path: BuildArtifacts/Packages/**/*

0 commit comments

Comments
 (0)