Skip to content

Commit

Permalink
CI: update actions/upload-artifact to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Sep 14, 2024
1 parent 62e7c2c commit a34ce91
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ jobs:
7z a RabbitCommon_${{env.RabbitCommon_VERSION}}_${{matrix.qt_arch}}_qt${{matrix.qt_version}}_${{matrix.BUILD_TYPE}}.zip ./install/*
- name: Update artifact
#if: ${{ matrix.BUILD_TYPE == 'Release' }}
uses: actions/upload-artifact@v3
if: ${{ matrix.BUILD_TYPE == 'Release' }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
name: ${{ env.artifact_name }}_${{matrix.qt_version}}_${{matrix.qt_arch}}
path: |
${{github.workspace}}/build/RabbitCommon_${{env.RabbitCommon_VERSION}}_${{matrix.qt_arch}}_qt${{matrix.qt_version}}_${{matrix.BUILD_TYPE}}.zip
26 changes: 16 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,40 +42,46 @@ jobs:
submodules: false

- name: Download ubuntu
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: ${{ needs.ubuntu.outputs.name }}
path: ${{ env.artifact_path }}
merge-multiple: true

- name: Download msvc
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: ${{ needs.msvc.outputs.name }}
pattern: ${{ needs.msvc.outputs.name }}_*
path: ${{ env.artifact_path }}
merge-multiple: true

- name: Download mingw
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: ${{ needs.mingw.outputs.name }}
path: ${{ env.artifact_path }}
merge-multiple: true

- name: Download macos
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: ${{ needs.macos.outputs.name }}
pattern: ${{ needs.macos.outputs.name }}_*
path: ${{ env.artifact_path }}
merge-multiple: true

- name: Download android
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: ${{ needs.android.outputs.name }}
pattern: ${{ needs.android.outputs.name }}_*
path: ${{ env.artifact_path }}
merge-multiple: true

- name: Download doxygen
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: ${{ needs.doxygen.outputs.name }}
path: ${{ env.artifact_path }}
merge-multiple: true

- name: Make Note.md file
run: |
Expand All @@ -98,7 +104,7 @@ jobs:
done
- name: Upload To Github Release
#if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --notes-file ${{github.workspace}}/Note.md
gh release upload ${{ github.ref_name }} ${{github.workspace}}/${{ env.artifact_path }}/* ${{github.workspace}}/Note.md
2 changes: 1 addition & 1 deletion .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Update artifact
if: ${{ env.BUILD_TYPE == 'Release' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ jobs:
7z a RabbitCommon_${{env.RabbitCommon_VERSION}}_macos_${{matrix.BUILD_TYPE}}.zip ./install/*
- name: Update artifact
#if: ${{ matrix.BUILD_TYPE == 'Release' }}
uses: actions/upload-artifact@v3
if: ${{ matrix.BUILD_TYPE == 'Release' }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
name: ${{ env.artifact_name }}_${{matrix.qt_version}}_${{matrix.qt_arch}}
path: |
${{github.workspace}}/build/RabbitCommon-*.tar.gz
${{github.workspace}}/build/RabbitCommon_${{env.RabbitCommon_VERSION}}_macos_${{matrix.BUILD_TYPE}}.zip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ jobs:
- name: Update artifact
if: ${{ matrix.BUILD_TYPE == 'Release' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
name: ${{ env.artifact_name }}_${{matrix.qt_version}}_${{matrix.qt_arch}}
path: |
${{github.workspace}}\build\RabbitCommon_${{env.RabbitCommon_VERSION}}_msvc_${{matrix.CMAKE_GENERATOR_PLATFORM}}_qt${{matrix.qt_version}}_${{matrix.BUILD_TYPE}}.zip
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ jobs:
cp ../rabbitcommon*.deb .
- name: Update artifact
#if: ${{ matrix.BUILD_TYPE == 'Release' }}
uses: actions/upload-artifact@v3
if: ${{ matrix.BUILD_TYPE == 'Release' }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: |
Expand Down
2 changes: 1 addition & 1 deletion Src/RabbitCommon.pri
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ DEFINES *= QT_MESSAGELOGCONTEXT
$$PWD/Style/Style.h \
$$PWD/Log/DockDebugLog.h \
$$PWD/Log/DlgFilter.h
INCLUDEPATH += $$PWD/Style
INCLUDEPATH += $$PWD/Style $$PWD/DockFolderBrowser
FORMS += $$PWD/Style/FrmStyle.ui \
$$PWD/DockFolderBrowser/DockFolderBrowser.ui \
$$PWD/Log/DockDebugLog.ui \
Expand Down

0 comments on commit a34ce91

Please sign in to comment.