Skip to content

Commit

Permalink
Upload binlog artifact on debug runs
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu authored Mar 12, 2024
1 parent 49661db commit a67ae78
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
fetch-depth: 0

- name: πŸ™ build
run: dotnet build -m:1
run: dotnet build -m:1 -bl:build.binlog

- name: βš™ GNU grep
if: matrix.os == 'macOS-latest'
Expand All @@ -69,6 +69,13 @@ jobs:
- name: πŸ§ͺ test
uses: ./.github/workflows/test

- name: πŸ› logs
uses: actions/upload-artifact@v3
if: runner.debug && always()
with:
name: logs
path: '*.binlog'

# Only push CI package to sleet feed if building on ubuntu (fastest)
- name: πŸš€ sleet
env:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,17 @@ jobs:
fetch-depth: 0

- name: πŸ™ build
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v} -bl:build.binlog

- name: πŸ§ͺ test
uses: ./.github/workflows/test

- name: πŸ› logs
uses: actions/upload-artifact@v3
if: runner.debug && always()
with:
name: logs
path: '*.binlog'

- name: πŸš€ nuget
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate

0 comments on commit a67ae78

Please sign in to comment.