mirror of https://github.com/AxioDL/metaforce.git
GitHub Actions: Use Qt6 on Windows; cache Qt & LLVM
This commit is contained in:
parent
30a2255674
commit
c19abf66dd
|
@ -119,25 +119,47 @@ jobs:
|
||||||
build-windows-msvc:
|
build-windows-msvc:
|
||||||
name: Build Windows (MSVC x86_64)
|
name: Build Windows (MSVC x86_64)
|
||||||
runs-on: [ self-hosted, windows, x64 ]
|
runs-on: [ self-hosted, windows, x64 ]
|
||||||
|
env:
|
||||||
|
LLVM_VERSION: 10.0.1
|
||||||
|
Qt_VERSION: 6.0.2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
# - name: Download LLVM
|
- name: Cache LLVM
|
||||||
# uses: suisei-cn/actions-download-file@v1
|
id: cache-llvm
|
||||||
# id: download-llvm
|
uses: actions/cache@v1
|
||||||
# with:
|
with:
|
||||||
# url: https://axiodl.com/files/LLVM-10.0.1-win64.exe
|
path: ../LLVM
|
||||||
# target: ${{github.workspace}}/temp
|
key: ${{runner.os}}-LLVMCache-${{env.LLVM_VERSION}}
|
||||||
|
|
||||||
# - name: Install LLVM
|
- name: Download LLVM
|
||||||
# shell: cmd
|
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
||||||
# working-directory: ${{github.workspace}}/temp
|
uses: suisei-cn/actions-download-file@v1
|
||||||
# run: ${{steps.download-llvm.outputs.filename}} /S
|
id: download-llvm
|
||||||
|
with:
|
||||||
|
url: https://axiodl.com/files/LLVM-${{env.LLVM_VERSION}}-win64.exe
|
||||||
|
target: ../temp
|
||||||
|
|
||||||
|
- name: Install LLVM
|
||||||
|
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
||||||
|
shell: cmd
|
||||||
|
working-directory: ../temp
|
||||||
|
run: ${{steps.download-llvm.outputs.filename}} /S /D=%RUNNER_WORKSPACE%\LLVM
|
||||||
|
|
||||||
|
- name: Cache Qt
|
||||||
|
id: cache-qt
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ../Qt
|
||||||
|
key: ${{runner.os}}-QtCache-${{env.Qt_VERSION}}
|
||||||
|
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v2
|
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 vulkan-sdk
|
# run: choco install ninja vulkan-sdk
|
||||||
|
@ -153,6 +175,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cmake $env:GITHUB_WORKSPACE -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DURDE_VECTOR_ISA=sse41 `
|
cmake $env:GITHUB_WORKSPACE -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DURDE_VECTOR_ISA=sse41 `
|
||||||
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_CXX_FLAGS= -DCMAKE_C_FLAGS= `
|
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_CXX_FLAGS= -DCMAKE_C_FLAGS= `
|
||||||
|
-DLLVM_ROOT_DIR="$env:RUNNER_WORKSPACE/LLVM" `
|
||||||
-DURDE_DLPACKAGE=urde-$env:GITHUB_RUN_NUMBER-win32-msvc-x86_64
|
-DURDE_DLPACKAGE=urde-$env:GITHUB_RUN_NUMBER-win32-msvc-x86_64
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
@ -172,25 +195,47 @@ jobs:
|
||||||
build-windows-clang:
|
build-windows-clang:
|
||||||
name: Build Windows (Clang x86_64)
|
name: Build Windows (Clang x86_64)
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
|
env:
|
||||||
|
LLVM_VERSION: 10.0.1
|
||||||
|
Qt_VERSION: 6.0.2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Cache LLVM
|
||||||
|
id: cache-llvm
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ../LLVM
|
||||||
|
key: ${{runner.os}}-LLVMCache-${{env.LLVM_VERSION}}
|
||||||
|
|
||||||
- name: Download LLVM
|
- name: Download LLVM
|
||||||
|
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
||||||
uses: suisei-cn/actions-download-file@v1
|
uses: suisei-cn/actions-download-file@v1
|
||||||
id: download-llvm
|
id: download-llvm
|
||||||
with:
|
with:
|
||||||
url: https://axiodl.com/files/LLVM-10.0.1-win64.exe
|
url: https://axiodl.com/files/LLVM-${{env.LLVM_VERSION}}-win64.exe
|
||||||
target: ${{github.workspace}}/temp
|
target: ../temp
|
||||||
|
|
||||||
- name: Install LLVM
|
- name: Install LLVM
|
||||||
|
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
||||||
shell: cmd
|
shell: cmd
|
||||||
working-directory: ${{github.workspace}}/temp
|
working-directory: ../temp
|
||||||
run: ${{steps.download-llvm.outputs.filename}} /S
|
run: ${{steps.download-llvm.outputs.filename}} /S /D=%RUNNER_WORKSPACE%\LLVM
|
||||||
|
|
||||||
|
- name: Cache Qt
|
||||||
|
id: cache-qt
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ../Qt
|
||||||
|
key: ${{runner.os}}-QtCache-${{env.Qt_VERSION}}
|
||||||
|
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v2
|
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 vulkan-sdk
|
run: choco install ninja vulkan-sdk
|
||||||
|
@ -209,6 +254,7 @@ jobs:
|
||||||
-DCMAKE_C_COMPILER="C:/Program Files/LLVM/bin/clang-cl.exe" `
|
-DCMAKE_C_COMPILER="C:/Program Files/LLVM/bin/clang-cl.exe" `
|
||||||
-DCMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang-cl.exe" `
|
-DCMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang-cl.exe" `
|
||||||
-DCMAKE_LINKER="C:/Program Files/LLVM/bin/lld-link.exe" `
|
-DCMAKE_LINKER="C:/Program Files/LLVM/bin/lld-link.exe" `
|
||||||
|
-DLLVM_ROOT_DIR="$env:RUNNER_WORKSPACE/LLVM" `
|
||||||
-DURDE_DLPACKAGE=urde-$env:GITHUB_RUN_NUMBER-win32-clang-x86_64
|
-DURDE_DLPACKAGE=urde-$env:GITHUB_RUN_NUMBER-win32-clang-x86_64
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
Loading…
Reference in New Issue