Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github-windows: only create archive if on master. #16017

Merged
merged 2 commits into from
Sep 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,32 @@ jobs:
shell: bash
run: |
cmake --build build --parallel 2 --target install
cd c:/project
7z a dealii-windows.zip *
- name: test library
shell: bash
run: |
cmake --build build --parallel 2 --target test
- name: archive library
# run only if a PR is merged into master
if: github.ref == 'refs/heads/master'
if: ${{ github.ref == 'refs/heads/master' && matrix.os == 'windows-2022' }}
shell: bash
run: |
cd c:/project
7z a dealii-windows.zip *
- name: upload library
# run only if a PR is merged into master
if: ${{ github.ref == 'refs/heads/master' && matrix.os == 'windows-2022' }}
uses: actions/upload-artifact@v3
with:
name: dealii-windows.zip
path: c:/project/dealii-windows.zip
- name: archive error 1
- name: upload CMakeOutput
uses: actions/upload-artifact@v3
if: always()
continue-on-error: true
with:
name: windows-serial-CMakeOutput.log
path: build/CMakeFiles/CMakeOutput.log
- name: archive error 2
- name: upload CMakeError
uses: actions/upload-artifact@v3
if: always()
continue-on-error: true
Expand Down