Skip to content

Commit

Permalink
[GH] Generalize upload CMake logs on build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sgallou committed Nov 8, 2023
1 parent 6cfd76d commit fcd0eaa
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/generate_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
username: ${{ secrets.CONTAINER_GH_LOGIN }}
password: ${{ secrets.CONTAINER_GH_TOKEN }}
entrypoint: 'sh /entrypoint_docker.sh'
- name: Upload logs on failure
uses: actions/upload-artifact@v2
if: failure()
with:
name: linux-build_logs
path: ./projects/external-libs/oatpp/src/oatpp_build-build/CMakeFiles/*.log
- name: Get tag/branch name
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
Expand Down Expand Up @@ -61,6 +67,12 @@ jobs:
username: ${{ secrets.CONTAINER_GH_LOGIN }}
password: ${{ secrets.CONTAINER_GH_TOKEN }}
entrypoint: 'sh /entrypoint_docker.sh'
- name: Upload logs on failure
uses: actions/upload-artifact@v2
if: failure()
with:
name: MacOSX-build_logs
path: ./projects/external-libs/oatpp/src/oatpp_build-build/CMakeFiles/*.log
- name: Get tag/branch name
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
Expand Down Expand Up @@ -104,6 +116,12 @@ jobs:
username: ${{ secrets.CONTAINER_GH_LOGIN }}
password: ${{ secrets.CONTAINER_GH_TOKEN }}
entrypoint: 'sh /entrypoint_docker.sh'
- name: Upload logs on failure
uses: actions/upload-artifact@v2
if: failure()
with:
name: Synology218p-build_logs
path: ./projects/external-libs/oatpp/src/oatpp_build-build/CMakeFiles/*.log
- name: Get tag/branch name
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
Expand Down Expand Up @@ -197,6 +215,12 @@ jobs:
username: ${{ secrets.CONTAINER_GH_LOGIN }}
password: ${{ secrets.CONTAINER_GH_TOKEN }}
entrypoint: 'powershell.exe -Command C:\work\build-scripts\windows\entrypoint_docker.ps1'
- name: Upload logs on failure
uses: actions/upload-artifact@v2
if: failure()
with:
name: Windows-build_logs
path: ./projects/external-libs/oatpp/src/oatpp_build-build/CMakeFiles/*.log
- name: Get tag/branch name
id: vars
run: Write-Host "::set-output name=tag::$( $env:GITHUB_REF -replace '^refs/.*/(.*)$','$1')"
Expand Down

0 comments on commit fcd0eaa

Please sign in to comment.