Compare commits
3 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5381967ed6 | ||
|
|
6f84a4a485 | ||
|
|
4b4b1fa777 |
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -13,6 +13,21 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# Linux
|
||||||
|
- name: Install build tools (Linux)
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y flex bison
|
||||||
|
|
||||||
|
# macOS
|
||||||
|
- name: Install build tools (macOS)
|
||||||
|
if: runner.os == 'macOS'
|
||||||
|
run: brew install flex bison
|
||||||
|
|
||||||
|
# Windows
|
||||||
|
- name: Install build tools (Windows)
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
run: choco install winflexbison -y
|
||||||
|
shell: pwsh
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
from conan import ConanFile
|
from conan import ConanFile
|
||||||
from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps, cmake_layout
|
from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps, cmake_layout
|
||||||
from shutil import which
|
from shutil import which
|
||||||
|
import os
|
||||||
|
|
||||||
class ArgonConan(ConanFile):
|
class ArgonConan(ConanFile):
|
||||||
name = "argon"
|
name = "argon"
|
||||||
@@ -31,9 +32,14 @@ class ArgonConan(ConanFile):
|
|||||||
def generate(self):
|
def generate(self):
|
||||||
tc = CMakeToolchain(self)
|
tc = CMakeToolchain(self)
|
||||||
|
|
||||||
|
if os.name == "nt": # Windows
|
||||||
|
flex_path = which("win_flex") or which("win_flex.exe")
|
||||||
|
if not flex_path:
|
||||||
|
raise Exception("win_flex not found in PATH. Install winflexbison via choco.")
|
||||||
|
else:
|
||||||
flex_path = which("flex")
|
flex_path = which("flex")
|
||||||
if not flex_path:
|
if not flex_path:
|
||||||
raise Exception("Flex not found in system PATH. Please install flex on your system.")
|
raise Exception("Flex not found in system PATH. Please install flex on Linux/macOS.")
|
||||||
|
|
||||||
tc.variables["FLEX_EXECUTABLE"] = flex_path
|
tc.variables["FLEX_EXECUTABLE"] = flex_path
|
||||||
tc.generate()
|
tc.generate()
|
||||||
|
|||||||
Reference in New Issue
Block a user