Skip to content

🔧 Fixed non-UTF8 HydraX sources. #3046

🔧 Fixed non-UTF8 HydraX sources.

🔧 Fixed non-UTF8 HydraX sources. #3046

Workflow file for this run

---
name: Build game
on: [ push, pull_request ]
jobs:
build-gcc:
name: Linux build on Ubuntu
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v7
with:
submodules: true
- name: Cache conan
uses: actions/cache@v6
with:
key: conan-ubuntu-${{ hashFiles('conanfile.py') }}
path: ~/.conan2/
- name: Install dependencies
run: |
curl "https://raw.githubusercontent.com/AnotherFoxGuy/ci-scripts/main/install-conan.sh" | sudo bash
sudo apt-get update
sudo apt-get -y install \
pkg-config \
ninja-build \
nvidia-cg-toolkit \
libfreetype6-dev \
libfreeimage-dev \
libzzip-dev \
libois-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libx11-dev \
libxt-dev \
libxaw7-dev \
libxrandr-dev \
libopenjp2-7-dev
shell: bash
- name: Configure
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 rigs-of-rods-deps https://nexus.anotherfoxguy.com/repository/rigs-of-rods/ -f
cmake . -GNinja -DCMAKE_BUILD_TYPE=Release -Bbuild -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=cmake/conan_provider.cmake -DCMAKE_INSTALL_PREFIX=redist -DCREATE_CONTENT_FOLDER=ON
shell: bash
- name: Build
run: |
cd build
ninja install
shell: bash
- name: Copy *.so files
run: cmake -P ./tools/CI/copy_libs.cmake
shell: bash
- name: Upload build to itch.io
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
if: env.BUTLER_API_KEY != null && github.ref == 'refs/heads/master'
run: |
curl "https://raw.githubusercontent.com/AnotherFoxGuy/ci-scripts/main/install-butler.sh" | sudo bash
butler push redist rigs-of-rods/rigs-of-rods-dev:linux-ci --userversion CIBuild-${GITHUB_RUN_NUMBER}-commit-${GITHUB_SHA}
shell: bash
- name: Upload redist folder
uses: actions/upload-artifact@v7
with:
name: ror-linux
path: redist
- name: Clean Conan pkgs
run: conan cache clean "*" -sbd
shell: bash
build-msvc:
name: Windows build
runs-on: windows-2025
env:
BUILD_TOOLS_PATH: C:\apps\build-tools\
CONAN_USER_HOME_SHORT: None
steps:
- run: echo $env:BUILD_TOOLS_PATH | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- uses: actions/checkout@v7
with:
submodules: true
- name: Install Build tools
run: git clone https://git.anotherfoxguy.com/AnotherFoxGuy/build-tools.git %BUILD_TOOLS_PATH%
shell: cmd
- name: Cache conan packages
uses: actions/cache@v6
with:
key: conan-windows-${{ hashFiles('conanfile.py') }}
path: ~/.conan2
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
- name: Configure
run: |
conan remote add rigs-of-rods-deps https://nexus.anotherfoxguy.com/repository/rigs-of-rods/ -f
cmake . -GNinja -DCMAKE_BUILD_TYPE=Release -Bbuild -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=cmake/conan_provider.cmake -DCMAKE_INSTALL_PREFIX=redist -DCREATE_CONTENT_FOLDER=ON
shell: cmd
- name: Build
run: |
cd build
ninja install
shell: cmd
- name: Upload build to itch.io
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
if: env.BUTLER_API_KEY != null && github.ref == 'refs/heads/master'
run: |
choco install butler -y
butler push redist rigs-of-rods/rigs-of-rods-dev:windows-ci --userversion CIBuild-%GITHUB_RUN_NUMBER%-Commit-%GITHUB_SHA%
shell: cmd
- name: Upload redist folder
uses: actions/upload-artifact@v7
with:
name: ror-win
path: redist
- name: Clean Conan pkgs
run: conan cache clean "*" -sbd
shell: cmd