Skip to content

Commit

Permalink
Don't collect logs anymore
Browse files Browse the repository at this point in the history
This takes up space in GH artifact storage quota and isn't very useful since the build is so trivial you can reproduce it locally consistently.
  • Loading branch information
kzu committed May 5, 2021
1 parent 0fc6e0e commit 6bd81a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,14 @@ jobs:
fetch-depth: 0

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

- name: πŸ§ͺ test
run: dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m -d $GITHUB_WORKSPACE/logs/${{ matrix.os }}.txt -r $GITHUB_WORKSPACE/logs
run: dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m

- name: πŸ“¦ pack
run: dotnet pack -m:1 -bl:pack.binlog -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER" -p:RepositoryBranch=${GITHUB_REF#refs/*/}
run: dotnet pack -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER" -p:RepositoryBranch=${GITHUB_REF#refs/*/}

- name: πŸ”Ό logs
if: always()
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}
path: |
**/*.binlog
logs/**/*.*
# Only push CI package to sleet feed if building on ubuntu (fastest)
- name: πŸš€ sleet
env:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,13 @@ jobs:
fetch-depth: 0

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

- name: πŸ§ͺ test
run: dotnet test --no-build -m:1

- name: πŸ“¦ pack
run: dotnet pack -m:1 -bl:pack.binlog -p:version=${GITHUB_REF#refs/*/v} -p:RepositoryBranch=${GITHUB_REF#refs/*/}

- name: πŸ”Ό logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
path: '**/*.binlog'
run: dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v} -p:RepositoryBranch=${GITHUB_REF#refs/*/}

- name: πŸš€ nuget
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
10 changes: 2 additions & 8 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,13 @@ jobs:
run: echo "CURRENT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

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

- name: πŸ§ͺ test
run: dotnet test --no-build -m:1

- name: πŸ“¦ pack
run: dotnet pack -m:1 -bl:pack.binlog -p:version=${GITHUB_REF#refs/*/v} -p:RepositoryBranch=${GITHUB_REF#refs/*/}

- name: πŸ”Ό logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
path: '**/*.binlog'
run: dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v} -p:RepositoryBranch=${GITHUB_REF#refs/*/}

- name: πŸ”½ gh
run: |
Expand Down

0 comments on commit 6bd81a3

Please sign in to comment.