Skip to content

Update ilammy/msvc-dev-cmd action to v1.13.0 #189

Update ilammy/msvc-dev-cmd action to v1.13.0

Update ilammy/msvc-dev-cmd action to v1.13.0 #189

Workflow file for this run

---
name: Build
on: [ push, pull_request ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, ubuntu-latest ]
env:
BUILD_TOOLS_PATH: C:\apps\build-tools\
steps:
- run: echo $env:BUILD_TOOLS_PATH | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
if: startsWith(matrix.os, 'windows')
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Build tools
if: startsWith(matrix.os, 'windows')
run: git clone https://git.anotherfoxguy.com/AnotherFoxGuy/build-tools.git %BUILD_TOOLS_PATH%
shell: cmd
- name: Install dependencies (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get -y install ninja-build
curl "https://git.anotherfoxguy.com/AnotherFoxGuy/install-scripts/raw/branch/main/install-conan.sh" | sudo bash
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1.13.0
- name: Cache conan packages
uses: actions/cache@v3
with:
key: conan-${{ runner.os }}-${{ hashFiles('conanfile.py') }}
path: ~/.conan2/
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
cache: 'true'
version: 6.4.0
modules: qt5compat qtpositioning qtwebchannel qtwebengine qtwebview
dir: "${{ github.workspace }}/qt/"
- name: Add conan remote
run: conan remote add ror-conan https://git.anotherfoxguy.com/api/packages/rorbot/conan -f
- name: Run Conan (Windows)
if: startsWith(matrix.os, 'windows')
run: |
conan remote add ror-conan https://git.anotherfoxguy.com/api/packages/rorbot/conan -f
conan install . -b missing -pr:b=tools/conan-profiles/vs-22-release-ninja -pr=tools/conan-profiles/vs-22-release-ninja
shell: cmd
- name: Run Conan (Linux)
if: startsWith(matrix.os, 'ubuntu')
run: |
conan profile detect --force
echo "tools.system.package_manager:mode = install" > ~/.conan2/global.conf
echo "tools.system.package_manager:sudo = True" >> ~/.conan2/global.conf
conan remote add ror-conan https://git.anotherfoxguy.com/api/packages/rorbot/conan -f
conan install . -s build_type=Release -b missing -pr:b=default -c tools.cmake.cmaketoolchain:generator="Ninja"
- name: Build
run: |
cmake --preset conan-release -DCMAKE_INSTALL_PREFIX=redist
ninja
- name: Install
run: ninja install
- name: Upload redist folder
uses: actions/upload-artifact@v3
with:
name: diesel-${{ runner.os }}
path: redist