-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fixed build with latest conan version
- Loading branch information
1 parent
022250f
commit 9f62ec3
Showing
15 changed files
with
158 additions
and
209 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build-msvc: | ||
name: Windows | ||
env: | ||
BUILD_TOOLS_PATH: C:\Program Files\Conan\conan | ||
CONAN_USER_HOME_SHORT: None | ||
runs-on: windows-latest | ||
steps: | ||
- run: echo $env:BUILD_TOOLS_PATH | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Cache conan | ||
uses: actions/cache@v3 | ||
with: | ||
key: conan-win-${{ hashFiles('conanfile.py') }} | ||
path: ~/.conan2/ | ||
|
||
- name: Install dependencies | ||
run: choco install conan ninja -y | ||
|
||
- name: Enable Developer Command Prompt | ||
uses: ilammy/msvc-dev-cmd@v1.12.1 | ||
|
||
- name: Configure | ||
run: | | ||
conan install . -b missing -pr:b=tools/conan-profiles/vs-22-release-ninja -pr=tools/conan-profiles/vs-22-release-ninja | ||
cmake --preset conan-release | ||
- name: Build | ||
run: ninja | ||
|
||
- name: Clean Conan pkgs | ||
run: conan cache clean "*" -sbd | ||
|
||
build-gcc: | ||
name: Linux | ||
env: | ||
CONAN_SYSREQUIRES_MODE: "enabled" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Cache conan | ||
uses: actions/cache@v3 | ||
with: | ||
key: conan-linux-${{ hashFiles('conanfile.py') }} | ||
path: ~/.conan2/ | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
curl "https://raw.githubusercontent.com/AnotherFoxGuy/ci-scripts/main/install-cmake.sh" | sudo bash | ||
curl "https://raw.githubusercontent.com/AnotherFoxGuy/ci-scripts/main/install-conan.sh" | sudo bash | ||
sudo apt-get -y install ninja-build | ||
- 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 install . -s build_type=Release -b missing -pr:b=default -c tools.cmake.cmaketoolchain:generator="Ninja" | ||
cmake --preset conan-release | ||
- name: Build | ||
run: ninja | ||
|
||
- name: Clean Conan pkgs | ||
run: conan cache clean "*" -sbd | ||
|
||
build-appleclang: | ||
name: MacOS | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Cache conan | ||
uses: actions/cache@v3 | ||
with: | ||
key: conan-mac-${{ hashFiles('conanfile.py') }} | ||
path: ~/.conan2/ | ||
|
||
- name: Install dependencies | ||
run: brew install conan ninja | ||
|
||
- name: Configure | ||
run: | | ||
conan profile detect --force | ||
conan install . -s build_type=Release -b missing -pr:b=default -c tools.cmake.cmaketoolchain:generator="Ninja" | ||
cmake --preset conan-release | ||
shell: bash | ||
|
||
- name: Build | ||
run: ninja | ||
|
||
- name: Clean Conan pkgs | ||
run: conan cache clean "*" -sbd |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
from conan import ConanFile | ||
from conan.tools.files import copy | ||
|
||
|
||
class OpenTESArena(ConanFile): | ||
name = "OpenTESArena" | ||
settings = "os", "compiler", "build_type", "arch" | ||
generators = "CMakeToolchain", "CMakeDeps" | ||
|
||
def requirements(self): | ||
self.requires("openal-soft/1.22.2") | ||
self.requires("sdl/2.26.1") | ||
self.requires("wildmidi/0.4.5") |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
[settings] | ||
os=Windows | ||
os_build=Windows | ||
arch=x86_64 | ||
arch_build=x86_64 | ||
compiler=Visual Studio | ||
compiler.version=16 | ||
compiler=msvc | ||
compiler.version=192 | ||
compiler.runtime=dynamic | ||
compiler.runtime_type=Debug | ||
build_type=Debug | ||
[options] | ||
[build_requires] | ||
[env] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[settings] | ||
os=Windows | ||
os_build=Windows | ||
arch=x86_64 | ||
arch_build=x86_64 | ||
compiler=Visual Studio | ||
compiler.version=16 | ||
compiler=msvc | ||
compiler.version=192 | ||
compiler.runtime=dynamic | ||
compiler.runtime_type=Debug | ||
build_type=Debug | ||
[conf] | ||
tools.cmake.cmaketoolchain:generator=Ninja |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
[settings] | ||
os=Windows | ||
os_build=Windows | ||
arch=x86_64 | ||
arch_build=x86_64 | ||
compiler=Visual Studio | ||
compiler.version=16 | ||
compiler=msvc | ||
compiler.version=192 | ||
compiler.runtime=dynamic | ||
compiler.runtime_type=Release | ||
build_type=Release | ||
[options] | ||
[build_requires] | ||
[env] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[settings] | ||
os=Windows | ||
os_build=Windows | ||
arch=x86_64 | ||
arch_build=x86_64 | ||
compiler=Visual Studio | ||
compiler.version=16 | ||
compiler=msvc | ||
compiler.version=192 | ||
compiler.runtime=dynamic | ||
compiler.runtime_type=Release | ||
build_type=Release | ||
[conf] | ||
tools.cmake.cmaketoolchain:generator=Ninja |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
[settings] | ||
os=Windows | ||
os_build=Windows | ||
arch=x86_64 | ||
arch_build=x86_64 | ||
compiler=Visual Studio | ||
compiler.version=17 | ||
build_type=Debug | ||
[options] | ||
[build_requires] | ||
[env] | ||
compiler=msvc | ||
compiler.version=193 | ||
compiler.runtime=dynamic | ||
compiler.runtime_type=Debug | ||
build_type=Debug |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[settings] | ||
os=Windows | ||
os_build=Windows | ||
arch=x86_64 | ||
arch_build=x86_64 | ||
compiler=Visual Studio | ||
compiler.version=17 | ||
compiler=msvc | ||
compiler.version=193 | ||
compiler.runtime=dynamic | ||
compiler.runtime_type=Debug | ||
build_type=Debug | ||
[conf] | ||
tools.cmake.cmaketoolchain:generator=Ninja |
Oops, something went wrong.