forked from qt-creator/qt-creator
GitHub Actions: Remove deprecation warnings
This removes the warnings that the jobs display due to upgrades that will be done for the internal GitHub Actions services. Change-Id: I4865c7e61f3da04a00f14657a87ecdd63c24325c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
50
.github/workflows/build_cmake.yml
vendored
50
.github/workflows/build_cmake.yml
vendored
@@ -51,7 +51,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Checkout submodules
|
- name: Checkout submodules
|
||||||
run: |
|
run: |
|
||||||
git submodule set-url -- perfparser https://code.qt.io/qt-creator/perfparser.git
|
git submodule set-url -- perfparser https://code.qt.io/qt-creator/perfparser.git
|
||||||
@@ -211,7 +211,7 @@ jobs:
|
|||||||
|
|
||||||
# Save the path for other steps
|
# Save the path for other steps
|
||||||
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/qt6/${qt_dir_prefix}" qt_dir)
|
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/qt6/${qt_dir_prefix}" qt_dir)
|
||||||
message("::set-output name=qt_dir::${qt_dir}")
|
file(APPEND "$ENV{GITHUB_OUTPUT}" "qt_dir=${qt_dir}")
|
||||||
|
|
||||||
function(downloadAndExtract url archive)
|
function(downloadAndExtract url archive)
|
||||||
foreach(qt_mirror $ENV{QT_MIRRORS})
|
foreach(qt_mirror $ENV{QT_MIRRORS})
|
||||||
@@ -378,7 +378,7 @@ jobs:
|
|||||||
|
|
||||||
# Save the path for other steps
|
# Save the path for other steps
|
||||||
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/libclang" libclang_dir)
|
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/libclang" libclang_dir)
|
||||||
message("::set-output name=libclang_dir::${libclang_dir}")
|
file(APPEND "$ENV{GITHUB_OUTPUT}" "libclang_dir=${libclang_dir}")
|
||||||
|
|
||||||
- name: Download elfutils
|
- name: Download elfutils
|
||||||
if: runner.os == 'Windows' && matrix.config.is_msvc || runner.os == 'Linux'
|
if: runner.os == 'Windows' && matrix.config.is_msvc || runner.os == 'Linux'
|
||||||
@@ -414,7 +414,7 @@ jobs:
|
|||||||
|
|
||||||
# Save the path for other steps
|
# Save the path for other steps
|
||||||
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/elfutils" elfutils_dir)
|
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/elfutils" elfutils_dir)
|
||||||
message("::set-output name=elfutils_dir::${elfutils_dir}")
|
file(APPEND "$ENV{GITHUB_OUTPUT}" "elfutils_dir=${elfutils_dir}")
|
||||||
|
|
||||||
- name: Download ccache
|
- name: Download ccache
|
||||||
shell: cmake -P {0}
|
shell: cmake -P {0}
|
||||||
@@ -437,7 +437,7 @@ jobs:
|
|||||||
include(${github_workspace}/cmake/QtCreatorIDEBranding.cmake)
|
include(${github_workspace}/cmake/QtCreatorIDEBranding.cmake)
|
||||||
string(REPLACE "." ";" IDE_VERSION_LIST ${IDE_VERSION_DISPLAY})
|
string(REPLACE "." ";" IDE_VERSION_LIST ${IDE_VERSION_DISPLAY})
|
||||||
list(GET IDE_VERSION_LIST 0 IDE_VERSION_MAJOR)
|
list(GET IDE_VERSION_LIST 0 IDE_VERSION_MAJOR)
|
||||||
message("::set-output name=archive_name::ccache-${{ matrix.config.os }}-${{ matrix.config.cc }}-qtc${IDE_VERSION_MAJOR}")
|
file(APPEND "$ENV{GITHUB_OUTPUT}" "archive_name=ccache-${{ matrix.config.os }}-${{ matrix.config.cc }}-qtc${IDE_VERSION_MAJOR}")
|
||||||
|
|
||||||
- name: Download ccache archive
|
- name: Download ccache archive
|
||||||
shell: cmake -P {0}
|
shell: cmake -P {0}
|
||||||
@@ -639,34 +639,34 @@ jobs:
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: build/qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
path: build/qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
|
|
||||||
- name: Upload Devel
|
- name: Upload Devel
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: build/qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}_dev.7z
|
path: build/qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}_dev.7z
|
||||||
name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}_dev.7z
|
name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}_dev.7z
|
||||||
|
|
||||||
- name: Upload wininterrupt
|
- name: Upload wininterrupt
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: build/wininterrupt-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
path: build/wininterrupt-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
name: wininterrupt-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
name: wininterrupt-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
|
|
||||||
- name: Upload qtcreatorcdbext
|
- name: Upload qtcreatorcdbext
|
||||||
if: runner.os == 'Windows' && matrix.config.is_msvc
|
if: runner.os == 'Windows' && matrix.config.is_msvc
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: build/qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
path: build/qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
|
|
||||||
- name: Upload disk image
|
- name: Upload disk image
|
||||||
if: runner.os == 'macOS' && contains(github.ref, 'tags/v')
|
if: runner.os == 'macOS' && contains(github.ref, 'tags/v')
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: build/qt-creator-${{ matrix.config.artifact }}-${{ github.run_id }}.dmg
|
path: build/qt-creator-${{ matrix.config.artifact }}-${{ github.run_id }}.dmg
|
||||||
name: qt-creator-${{ matrix.config.artifact }}-${{ github.run_id }}.dmg
|
name: qt-creator-${{ matrix.config.artifact }}-${{ github.run_id }}.dmg
|
||||||
@@ -676,7 +676,7 @@ jobs:
|
|||||||
run: cmake -E tar cf ../${{ steps.ccache.outputs.archive_name }}.tar .
|
run: cmake -E tar cf ../${{ steps.ccache.outputs.archive_name }}.tar .
|
||||||
|
|
||||||
- name: Upload ccache archive
|
- name: Upload ccache archive
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ./${{ steps.ccache.outputs.archive_name }}.tar
|
path: ./${{ steps.ccache.outputs.archive_name }}.tar
|
||||||
name: ${{ steps.ccache.outputs.archive_name }}
|
name: ${{ steps.ccache.outputs.archive_name }}
|
||||||
@@ -689,7 +689,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1.0.0
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
@@ -702,7 +702,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "${{ steps.create_release.outputs.upload_url }}" > ./upload_url
|
echo "${{ steps.create_release.outputs.upload_url }}" > ./upload_url
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ./upload_url
|
path: ./upload_url
|
||||||
name: upload_url
|
name: upload_url
|
||||||
@@ -735,50 +735,50 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
path: ./
|
path: ./
|
||||||
|
|
||||||
- name: Download Devel artifact
|
- name: Download Devel artifact
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}_dev.7z
|
name: qtcreator-${{ matrix.config.artifact }}-${{ github.run_id }}_dev.7z
|
||||||
path: ./
|
path: ./
|
||||||
|
|
||||||
- name: Download wininterrupt artifact
|
- name: Download wininterrupt artifact
|
||||||
if: contains(matrix.config.artifact, 'Windows')
|
if: contains(matrix.config.artifact, 'Windows')
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: wininterrupt-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
name: wininterrupt-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
path: ./
|
path: ./
|
||||||
|
|
||||||
- name: Download qtcreatorcdbext artifact
|
- name: Download qtcreatorcdbext artifact
|
||||||
if: matrix.config.artifact == 'Windows-MSVC'
|
if: matrix.config.artifact == 'Windows-MSVC'
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
path: ./
|
path: ./
|
||||||
|
|
||||||
- name: Download disk image artifact
|
- name: Download disk image artifact
|
||||||
if: matrix.config.artifact == 'macOS'
|
if: matrix.config.artifact == 'macOS'
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: qt-creator-${{ matrix.config.artifact }}-${{ github.run_id }}.dmg
|
name: qt-creator-${{ matrix.config.artifact }}-${{ github.run_id }}.dmg
|
||||||
path: ./
|
path: ./
|
||||||
|
|
||||||
- name: Download URL
|
- name: Download URL
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: upload_url
|
name: upload_url
|
||||||
path: ./
|
path: ./
|
||||||
- id: set_upload_url
|
- id: set_upload_url
|
||||||
run: |
|
run: |
|
||||||
upload_url=`cat ./upload_url`
|
upload_url=`cat ./upload_url`
|
||||||
echo ::set-output name=upload_url::$upload_url
|
echo upload_url=$upload_url >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload to Release
|
- name: Upload to Release
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
@@ -788,7 +788,7 @@ jobs:
|
|||||||
asset_content_type: application/x-gtar
|
asset_content_type: application/x-gtar
|
||||||
|
|
||||||
- name: Upload Devel to Release
|
- name: Upload Devel to Release
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
@@ -799,7 +799,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload wininterrupt to Release
|
- name: Upload wininterrupt to Release
|
||||||
if: contains(matrix.config.artifact, 'Windows')
|
if: contains(matrix.config.artifact, 'Windows')
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
@@ -810,7 +810,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload qtcreatorcdbext to Release
|
- name: Upload qtcreatorcdbext to Release
|
||||||
if: matrix.config.artifact == 'Windows-MSVC'
|
if: matrix.config.artifact == 'Windows-MSVC'
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
@@ -821,7 +821,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload disk image to Release
|
- name: Upload disk image to Release
|
||||||
if: matrix.config.artifact == 'macOS'
|
if: matrix.config.artifact == 'macOS'
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user