diff --git a/.github/workflows/build-chat.yml b/.github/workflows/build-chat.yml index 084da4be..28a80651 100644 --- a/.github/workflows/build-chat.yml +++ b/.github/workflows/build-chat.yml @@ -14,31 +14,17 @@ jobs: fetch_depth: 0 submodules: true - name: Install QT - uses: jurplel/install-qt-action@v4 - with: - version: '5.15.11' - host: 'windows' - target: 'desktop' - arch: 'win64_msvc2013_64' - dir: '${{ github.workspace }}/Qt' - cache: true - tools: 'qt.tools.cmake qt.tools.ifw.47 qt.tools.ninja qt.qt6.651.win64_msvc2019_64 qt.qt6.651.qt5compat qt.qt6.651.debug_info qt.qt6.651.addons.qtpdf qt.qt6.651.addons.qthttpserver' - set-env: 'true' - tools-only: 'false' + run: | + Invoke-WebRequest -Uri https://gpt4all.io/ci/qt-unified-windows-x64-4.6.0-online.exe -OutFile qt-unified-windows-x64-4.6.0-online.exe + & .\qt-unified-windows-x64-4.6.0-online.exe --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email ${Env:QT_EMAIL} --password ${Env:QT_PASSWORD} install qt.tools.cmake qt.tools.ifw.47 qt.tools.ninja qt.qt6.651.win64_msvc2019_64 qt.qt6.651.qt5compat qt.qt6.651.debug_info qt.qt6.651.addons.qtpdf qt.qt6.651.addons.qthttpserver - name: Install Vulkan - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: 1.3.261.1 - vulkan-components: Vulkan-Headers, Vulkan-Loader - vulkan-use-cache: true - - name: Install CUDA ToolKit - uses: Jimver/cuda-toolkit@v0.2.16 - id: cuda-toolkit - with: - method: network - sub-packages: '["nvcc_11.8", "visual_studio_integration"]' - non-cuda-sub-packages: '["cudart_11.8", "cublas_11.8", "cublas_dev_11.8"]' - cuda: 11.8.0 + run: | + Invoke-WebRequest -Uri https://sdk.lunarg.com/sdk/download/1.3.261.1/windows/VulkanSDK-1.3.261.1-Installer.exe -OutFile VulkanSDK-1.3.261.1-Installer.exe + .\VulkanSDK-1.3.261.1-Installer.exe --accept-licenses --default-answer --confirm-command install + - name: Install CUDA + run: | + Invoke-WebRequest -Uri https://developer.download.nvidia.com/compute/cuda/11.8.0/network_installers/cuda_11.8.0_windows_network.exe -OutFile cuda_11.8.0_windows_network.exe + .\cuda_11.8.0_windows_network.exe -s cudart_11.8 nvcc_11.8 cublas_11.8 cublas_dev_11.8 - name: Build Chat run: | cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DKOMPUTE_OPT_DISABLE_VULKAN_VERSION_CHECK=ON -S gpt4all-chat -B build @@ -54,19 +40,14 @@ jobs: - name: Setup XCode run: sudo xcode-select -s '/Applications/Xcode_14.1.app' - name: Install QT - uses: jurplel/install-qt-action@v4 - with: - version: '5.15.11' - host: 'mac' - target: 'desktop' - arch: 'clang_64' - dir: '${{ github.workspace }}/Qt' - cache: true - tools: 'qt.tools.cmake qt.tools.ifw.47 qt.tools.ninja qt.qt6.651.clang_64 qt.qt6.651.qt5compat qt.qt6.651.debug_info qt.qt6.651.addons.qtpdf qt.qt6.651.addons.qthttpserver' - set-env: 'true' - tools-only: 'false' + run: | + curl -o qt-unified-macOS-x64-4.6.0-online.dmg https://gpt4all.io/ci/qt-unified-macOS-x64-4.6.0-online.dmg + hdiutil attach qt-unified-macOS-x64-4.6.0-online.dmg + /Volumes/qt-unified-macOS-x64-4.6.0-online/qt-unified-macOS-x64-4.6.0-online.app/Contents/MacOS/qt-unified-macOS-x64-4.6.0-online --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email $QT_EMAIL --password $QT_PASSWORD install qt.tools.cmake qt.tools.ifw.47 qt.tools.ninja qt.qt6.651.clang_64 qt.qt6.651.qt5compat qt.qt6.651.debug_info qt.qt6.651.addons.qtpdf qt.qt6.651.addons.qthttpserver + hdiutil detach /Volumes/qt-unified-macOS-x64-4.6.0-online - name: Install Rosetta - run: softwareupdate --install-rosetta --agree-to-license + run: | + softwareupdate --install-rosetta --agree-to-license - name: Build Chat run: | cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -S gpt4all-chat -B build @@ -80,17 +61,10 @@ jobs: fetch_depth: 0 submodules: true - name: Install QT - uses: jurplel/install-qt-action@v4 - with: - version: '5.15.11' - host: 'linux' - target: 'desktop' - arch: 'gcc_64' - dir: '${{ github.workspace }}/Qt' - cache: true - tools: 'qt.tools.cmake qt.tools.ifw.47 qt.tools.ninja qt.qt6.651.gcc_64 qt.qt6.651.qt5compat qt.qt6.651.debug_info qt.qt6.651.addons.qtpdf qt.qt6.651.addons.qthttpserver qt.qt6.651.qtwaylandcompositor' - set-env: 'true' - tools-only: 'false' + run: | + wget https://gpt4all.io/ci/qt-unified-linux-x64-4.6.0-online.run + chmod +x qt-unified-linux-x64-4.6.0-online.run + ./qt-unified-linux-x64-4.6.0-online.run --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email $QT_EMAIL --password $QT_PASSWORD install qt.tools.cmake qt.tools.ifw.47 qt.tools.ninja qt.qt6.651.gcc_64 qt.qt6.651.qt5compat qt.qt6.651.debug_info qt.qt6.651.addons.qtpdf qt.qt6.651.addons.qthttpserver qt.qt6.651.qtwaylandcompositor - name: Install Vulkan + Cuda run: | wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc @@ -101,8 +75,8 @@ jobs: echo "/usr/local/cuda/bin" >> $GITHUB_PATH - name: Build Chat run: | - cmake -GNinja -DCMAKE_BUILD_TYPE=Release -S gpt4all-chat -B build - cmake --build build --target all + cmake -GNinja -DCMAKE_BUILD_TYPE=Release -S gpt4all-chat -B build + cmake --build build --target all