Manual Release #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
name: Manual Release | |
jobs: | |
manual_release: | |
runs-on: ubuntu-latest | |
container: | |
image: scell555/chaos-cas-steamrt:latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Install XCB packages | |
run: | | |
apt-get update | |
apt-get install -y --no-install-recommends libxkbcommon-x11-dev libxcb-cursor-dev libxcb-icccm4-dev libxcb-keysyms1-dev | |
- name: Prepare build dirs | |
run: | | |
mkdir build | |
mkdir build-cross | |
- name: Configure Linux | |
working-directory: build | |
run: CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja -DQT_BUILD_TESTS=OFF -DQT_BUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=/opt/qt6 .. | |
- name: Build Linux | |
working-directory: build | |
run: | | |
ninja | |
ninja install | |
cp -r /opt/qt6/include /opt/qt6/include-linux | |
cp -r /opt/qt6/lib/cmake /opt/qt6/lib/cmake-linux | |
cp -r /opt/qt6/metatypes /opt/qt6/metatypes-linux | |
cp -r /opt/qt6/mkspecs /opt/qt6/mkspecs-linux | |
cp -r /opt/qt6/modules /opt/qt6/modules-linux | |
- name: Fix windows includes | |
working-directory: /opt/msvc/kits/10/Include/10.0.20348.0/winrt | |
run: | | |
ln -s asyncinfo.h AsyncInfo.h | |
ln -s WindowsContracts.h windowscontracts.h | |
ln -s ivectorchangedeventargs.h IVectorChangedEventArgs.h | |
- name: Configure Windows | |
working-directory: build-cross | |
run: cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja -DQT_BUILD_TESTS=OFF -DQT_BUILD_EXAMPLES=OFF -DQT_FORCE_BUILD_TOOLS=ON -DCMAKE_INSTALL_PREFIX=/opt/qt6 -DQT_HOST_PATH=/opt/qt6 -DQT_QMAKE_TARGET_MKSPEC=win32-clang-msvc -DCMAKE_TOOLCHAIN_FILE=cmake/clang.toolchain.cmake .. | |
- name: Build Windows | |
working-directory: build-cross | |
run: | | |
ninja | |
ninja install | |
- name: Pack build output | |
working-directory: /opt | |
run: | | |
tar cf qt6.tar /opt/qt6 | |
gzip qt6.tar | |
- name: Build upload | |
uses: actions/[email protected] | |
with: | |
name: build_${{ github.sha }} | |
path: /opt/qt6.tar.gz | |
if-no-files-found: error | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: strata-qt-${{ github.run_number }}.${{ github.run_attempt }} | |
files: /opt/qt6.tar.gz | |
fail_on_unmatched_files: true |