aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2020-01-15 17:04:14 +0100
committerCristian Adam <cristian.adam@qt.io>2020-01-15 17:55:51 +0000
commit371814f35c29ae96b04359a0b1042d6ab7c091ce (patch)
treee14b303af11e31cdb2c73acd9ddbcde40fb9a1a2 /.github
parentec5c626d1525823493a1db1a0f0f4580855d7211 (diff)
GitHub Workflow: package Devel component
This will allow 3rd parties to build plugins against this build of Qt Creator. Change-Id: I2ed7c3e4e3769e9b22a71a73d8355f1af48acf3e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_cmake.yml56
1 files changed, 41 insertions, 15 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml
index 15989672f8..0826a8d132 100644
--- a/.github/workflows/build_cmake.yml
+++ b/.github/workflows/build_cmake.yml
@@ -20,23 +20,23 @@ jobs:
matrix:
config:
- {
- name: "Windows Latest MSVC", artifact: "Windows-MSVC.tar.xz",
+ name: "Windows Latest MSVC", artifact: "Windows-MSVC",
os: windows-latest,
cc: "cl", cxx: "cl",
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
}
- {
- name: "Windows Latest MinGW", artifact: "Windows-MinGW.tar.xz",
+ name: "Windows Latest MinGW", artifact: "Windows-MinGW",
os: windows-latest,
cc: "gcc", cxx: "g++"
}
- {
- name: "Ubuntu Latest GCC", artifact: "Linux.tar.xz",
+ name: "Ubuntu Latest GCC", artifact: "Linux",
os: ubuntu-latest,
cc: "gcc", cxx: "g++"
}
- {
- name: "macOS Latest Clang", artifact: "macOS.tar.xz",
+ name: "macOS Latest Clang", artifact: "macOS",
os: macos-latest,
cc: "clang", cxx: "clang++"
}
@@ -358,17 +358,28 @@ jobs:
- name: Install Strip
run: ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake --install build --prefix instdir --strip
+ - name: Install Devel
+ run: ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake --install build --prefix instdir-dev --component Devel
- name: Pack
working-directory: instdir
- run: ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake -E tar cJfv ../${{ matrix.config.artifact }} .
+ run: ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake -E tar cJfv ../${{ matrix.config.artifact }}.tar.xz .
+ - name: Pack Devel
+ working-directory: instdir-dev
+ run: ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake -E tar cJfv ../${{ matrix.config.artifact }}-dev.tar.xz .
- name: Upload
uses: actions/upload-artifact@v1
with:
- path: ./${{ matrix.config.artifact }}
- name: ${{ matrix.config.artifact }}
+ path: ./${{ matrix.config.artifact }}.tar.xz
+ name: ${{ matrix.config.artifact }}.tar.xz
+
+ - name: Upload Devel
+ uses: actions/upload-artifact@v1
+ with:
+ path: ./${{ matrix.config.artifact }}-dev.tar.xz
+ name: ${{ matrix.config.artifact }}-dev.tar.xz
release:
if: contains(github.ref, 'tags/v')
@@ -405,19 +416,19 @@ jobs:
matrix:
config:
- {
- name: "Windows Latest MSVC", artifact: "Windows-MSVC.tar.xz",
+ name: "Windows Latest MSVC", artifact: "Windows-MSVC",
os: ubuntu-latest
}
- {
- name: "Windows Latest MinGW", artifact: "Windows-MinGW.tar.xz",
+ name: "Windows Latest MinGW", artifact: "Windows-MinGW",
os: ubuntu-latest
}
- {
- name: "Ubuntu Latest GCC", artifact: "Linux.tar.xz",
+ name: "Ubuntu Latest GCC", artifact: "Linux",
os: ubuntu-latest
}
- {
- name: "macOS Latest Clang", artifact: "macOS.tar.xz",
+ name: "macOS Latest Clang", artifact: "macOS",
os: ubuntu-latest
}
needs: release
@@ -426,7 +437,13 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v1
with:
- name: ${{ matrix.config.artifact }}
+ name: ${{ matrix.config.artifact }}.tar.xz
+ path: ./
+
+ - name: Download Devel artifact
+ uses: actions/download-artifact@v1
+ with:
+ name: ${{ matrix.config.artifact }}-dev.tar.xz
path: ./
- name: Download URL
@@ -440,12 +457,21 @@ jobs:
echo ::set-output name=upload_url::$upload_url
- name: Upload to Release
- id: upload_to_release
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.set_upload_url.outputs.upload_url }}
- asset_path: ./${{ matrix.config.artifact }}
- asset_name: ${{ matrix.config.artifact }}
+ asset_path: ./${{ matrix.config.artifact }}.tar.xz
+ asset_name: ${{ matrix.config.artifact }}.tar.xz
+ asset_content_type: application/x-gtar
+
+ - name: Upload Devel to Release
+ uses: actions/upload-release-asset@v1.0.1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.set_upload_url.outputs.upload_url }}
+ asset_path: ./${{ matrix.config.artifact }}-dev.tar.xz
+ asset_name: ${{ matrix.config.artifact }}-dev.tar.xz
asset_content_type: application/x-gtar