Skip to content

Commit

Permalink
test Windows shell
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwparent committed Jul 22, 2024
1 parent 536162a commit 792451f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build-chat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
jobs:
build-chat-windows:
runs-on: windows-latest
defaults:
run:
shell: powershell -noe -c "&{Import-Module """C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell eb4dc59a}"; {0}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -19,7 +16,7 @@ jobs:
with:
path: C:\VulkanSDK
key: ${{ runner.os }}-build-vulkan-${{ hashFiles('C:\VulkanSDK\**') }}
restore_keys: |
restore-keys: |
${{ runner.os }}-build-vulkan-
- if: ${{ steps.cache_vulkan.outputs.cache-hit != 'true' }}
name: Install Vulkan
Expand All @@ -38,7 +35,7 @@ jobs:
with:
path: C:\Qt
key: ${{ runner.os }}-build-qt-${{ hashFiles('C:\Qt\**') }}
restore_keys: |
restore-keys: |
${{ runner.os }}-build-qt-
- if: ${{ steps.cache_qt.outputs.cache-hit != 'true' }}
name: Install QT
Expand All @@ -50,6 +47,7 @@ jobs:
& .\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
echo "Qt6_DIR=C:/Qt/6.5.1/msvc2019_64" >> $Env:GITHUB_ENV
- name: Build Chat
shell: powershell -noe -c "&{Import-Module """C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell eb4dc59a}"; {0}
run: |
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DKOMPUTE_OPT_DISABLE_VULKAN_VERSION_CHECK=ON -S gpt4all-chat -B build
ninja -C build
Expand All @@ -72,7 +70,7 @@ jobs:
with:
path: "~/Qt"
key: ${{ runner.os }}-build-qt-${{ hashFiles('~/Qt/**') }}
restore_keys: |
restore-keys: |
${{ runner.os }}-build-qt-
- if: ${{ steps.cache_qt.outputs.cache-hit != 'true' }}
name: Install QT
Expand Down Expand Up @@ -111,7 +109,7 @@ jobs:
with:
path: "/Qt"
key: ${{ runner.os }}-build-qt-${{ hashFiles('/Qt/**') }}
restore_keys: |
restore-keys: |
${{ runner.os }}-build-qt-
- if: ${{ steps.cache_qt.outputs.cache-hit != 'true' }}
name: Install QT
Expand Down

0 comments on commit 792451f

Please sign in to comment.