📝 Updated screenshot #200
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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/[email protected] | |
- name: Cache conan packages | |
uses: actions/cache@v4 | |
with: | |
key: conan-${{ runner.os }}-${{ hashFiles('conanfile.py') }} | |
path: ~/.conan2/ | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
cache: 'true' | |
version: 6.7.2 | |
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@v4 | |
with: | |
name: diesel-${{ runner.os }} | |
path: redist |