fetch-depth 0 and use binary Qt

This commit is contained in:
Luke Street 2021-03-26 19:32:50 -04:00
parent 5b26f65249
commit 0f4e76a439
1 changed files with 17 additions and 12 deletions

View File

@ -18,12 +18,13 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install cmake ninja-build qt5-default
sudo apt-get -y install cmake ninja-build qt5-default libclang-dev
- name: Create build directory
run: cmake -E make_directory ${{github.workspace}}/build
@ -55,6 +56,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Install dependencies
@ -107,15 +109,21 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Install vcpkg Qt
run: |
$TempDir = "$env:RUNNER_WORKSPACE\temp"
$Filename = "vcpkg-qt-$env:Qt_VERSION.7z"
New-Item -Path "$TempDir" -ItemType Directory -ea 0
(New-Object Net.WebClient).DownloadFile("https://axiodl.com/files/$Filename", "$TempDir\$Filename")
7z x "-o$env:RUNNER_WORKSPACE" -aos "$TempDir\$Filename"
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{runner.os}}-QtCache-${{env.Qt_VERSION}}
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{env.Qt_VERSION}}
cached: ${{steps.cache-qt.outputs.cache-hit}}
- name: Install dependencies
run: choco install ninja
@ -130,10 +138,7 @@ jobs:
working-directory: ${{github.workspace}}/build
run: |
$workspace = $env:RUNNER_WORKSPACE -replace '\\', '/'
cmake $env:GITHUB_WORKSPACE -GNinja -DCMAKE_BUILD_TYPE=Release `
-DCMAKE_TOOLCHAIN_FILE="$workspace/vcpkg-qt-$env:Qt_VERSION/scripts/buildsystems/vcpkg.cmake" `
-DVCPKG_TARGET_TRIPLET=x64-windows-static `
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
cmake $env:GITHUB_WORKSPACE -GNinja -DCMAKE_BUILD_TYPE=Release
- name: Build
working-directory: ${{github.workspace}}/build