fetch-depth 0 and use binary Qt
This commit is contained in:
parent
5b26f65249
commit
0f4e76a439
|
@ -18,12 +18,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
- name: Create build directory
|
||||||
run: cmake -E make_directory ${{github.workspace}}/build
|
run: cmake -E make_directory ${{github.workspace}}/build
|
||||||
|
@ -55,6 +56,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
@ -107,15 +109,21 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Install vcpkg Qt
|
- name: Cache Qt
|
||||||
run: |
|
id: cache-qt
|
||||||
$TempDir = "$env:RUNNER_WORKSPACE\temp"
|
uses: actions/cache@v1
|
||||||
$Filename = "vcpkg-qt-$env:Qt_VERSION.7z"
|
with:
|
||||||
New-Item -Path "$TempDir" -ItemType Directory -ea 0
|
path: ../Qt
|
||||||
(New-Object Net.WebClient).DownloadFile("https://axiodl.com/files/$Filename", "$TempDir\$Filename")
|
key: ${{runner.os}}-QtCache-${{env.Qt_VERSION}}
|
||||||
7z x "-o$env:RUNNER_WORKSPACE" -aos "$TempDir\$Filename"
|
|
||||||
|
- name: Install Qt
|
||||||
|
uses: jurplel/install-qt-action@v2
|
||||||
|
with:
|
||||||
|
version: ${{env.Qt_VERSION}}
|
||||||
|
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: choco install ninja
|
run: choco install ninja
|
||||||
|
@ -130,10 +138,7 @@ jobs:
|
||||||
working-directory: ${{github.workspace}}/build
|
working-directory: ${{github.workspace}}/build
|
||||||
run: |
|
run: |
|
||||||
$workspace = $env:RUNNER_WORKSPACE -replace '\\', '/'
|
$workspace = $env:RUNNER_WORKSPACE -replace '\\', '/'
|
||||||
cmake $env:GITHUB_WORKSPACE -GNinja -DCMAKE_BUILD_TYPE=Release `
|
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
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{github.workspace}}/build
|
working-directory: ${{github.workspace}}/build
|
||||||
|
|
Loading…
Reference in New Issue