Compare commits

...

3 Commits

Author SHA1 Message Date
dependabot[bot]
4045938bb7
Bump actions/cache from 2.1.7 to 3 (#19) 2022-03-22 15:34:37 +00:00
dependabot[bot]
26c10b8ccc
Bump actions/checkout from 2.4.0 to 3 (#18) 2022-03-22 15:33:15 +00:00
4c18fa3944 👷 Fixed installing build tools 2022-03-22 16:26:08 +01:00
2 changed files with 16 additions and 10 deletions

View File

@ -7,29 +7,34 @@ jobs:
build-msvc: build-msvc:
name: Build Windows name: Build Windows
runs-on: windows-latest runs-on: windows-latest
env:
BUILD_TOOLS_PATH: C:\apps\build-tools\
steps: steps:
- name: Add Conan to path - run: echo $env:BUILD_TOOLS_PATH | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
run: echo "C:\Program Files\Conan\conan\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- uses: actions/checkout@v2.4.0 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- name: Install deps - name: Install Build tools
run: choco install ninja conan -y shell: cmake -P {0}
run: |
file(MAKE_DIRECTORY $ENV{BUILD_TOOLS_PATH})
file(DOWNLOAD https://cdn.anotherfoxguy.com/build-tools.zip "$ENV{TMP}/build-tools.zip" SHOW_PROGRESS)
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf "$ENV{TMP}/build-tools.zip" WORKING_DIRECTORY "$ENV{BUILD_TOOLS_PATH}")
- name: Enable Developer Command Prompt - name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1.10.0 uses: ilammy/msvc-dev-cmd@v1.10.0
- name: Cache conan packages - name: Cache conan packages
uses: actions/cache@v2.1.7 uses: actions/cache@v3
with: with:
key: win-conan-${{ hashFiles('**/conanfile.txt') }} key: win-conan-${{ hashFiles('**/conanfile.txt') }}
path: ~/.conan/ path: ~/.conan/
- name: Cache Qt - name: Cache Qt
id: cache-qt id: cache-qt
uses: actions/cache@v2.1.7 uses: actions/cache@v3
with: with:
path: "${{ github.workspace }}/qt/" path: "${{ github.workspace }}/qt/"
key: ${{ runner.os }}-QtCache key: ${{ runner.os }}-QtCache
@ -49,7 +54,7 @@ jobs:
mkdir build mkdir build
cd build cd build
conan install .. --build=missing conan install .. --build=missing
cmake -GNinja -DCMAKE_INSTALL_PREFIX=redist .. cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=redist ..
ninja ninja
shell: cmd shell: cmd
@ -69,7 +74,7 @@ jobs:
name: Build Linux name: Build Linux
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.4.0 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true

1
.gitignore vendored
View File

@ -45,3 +45,4 @@ CMakeLists.txt.user*
*.qm *.qm
/build* /build*
.idea/ .idea/
test-pr