Compare commits
6 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cfb4acda6 | ||
|
|
436f30330b | ||
|
|
5381967ed6 | ||
|
|
6f84a4a485 | ||
|
|
4b4b1fa777 | ||
|
|
2b6e785638 |
19
.github/workflows/release.yml
vendored
19
.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:
|
||||||
@@ -96,7 +111,7 @@ jobs:
|
|||||||
FOLDER_NAME="chloride-$TAG-$OS-$ARCH"
|
FOLDER_NAME="chloride-$TAG-$OS-$ARCH"
|
||||||
TAR_NAME="$FOLDER_NAME.tar.gz"
|
TAR_NAME="$FOLDER_NAME.tar.gz"
|
||||||
mv build/bin "$FOLDER_NAME"
|
mv build/bin "$FOLDER_NAME"
|
||||||
cp LICENSE "$FOLDER_NAME"
|
cp LICENSE.txt "$FOLDER_NAME"
|
||||||
tar -czf "$TAR_NAME" "$FOLDER_NAME"
|
tar -czf "$TAR_NAME" "$FOLDER_NAME"
|
||||||
echo "TAR_NAME=$TAR_NAME" >> $GITHUB_ENV
|
echo "TAR_NAME=$TAR_NAME" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -109,7 +124,7 @@ jobs:
|
|||||||
$FOLDER_NAME = "chloride-$TAG-windows-$ARCH"
|
$FOLDER_NAME = "chloride-$TAG-windows-$ARCH"
|
||||||
$TAR_NAME = "$FOLDER_NAME.zip"
|
$TAR_NAME = "$FOLDER_NAME.zip"
|
||||||
Rename-Item build\bin $FOLDER_NAME
|
Rename-Item build\bin $FOLDER_NAME
|
||||||
Copy-Item LICENSE $FOLDER_NAME
|
Copy-Item LICENSE.txt $FOLDER_NAME
|
||||||
Compress-Archive -Path $FOLDER_NAME -DestinationPath $TAR_NAME
|
Compress-Archive -Path $FOLDER_NAME -DestinationPath $TAR_NAME
|
||||||
echo "TAR_NAME=$TAR_NAME" >> $env:GITHUB_ENV
|
echo "TAR_NAME=$TAR_NAME" >> $env:GITHUB_ENV
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|||||||
@@ -52,7 +52,9 @@ find_package(BDWgc REQUIRED)
|
|||||||
find_package(gmp REQUIRED)
|
find_package(gmp REQUIRED)
|
||||||
|
|
||||||
target_compile_options(argon PRIVATE -O3 -Wall -Wextra -Wno-unused-function -s)
|
target_compile_options(argon PRIVATE -O3 -Wall -Wextra -Wno-unused-function -s)
|
||||||
target_link_options(argon PRIVATE -static)
|
if(NOT APPLE)
|
||||||
|
target_link_options(argon PRIVATE -static)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(argon PRIVATE
|
target_link_libraries(argon PRIVATE
|
||||||
BDWgc::BDWgc
|
BDWgc::BDWgc
|
||||||
|
|||||||
19
conanfile.py
19
conanfile.py
@@ -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,18 +32,16 @@ class ArgonConan(ConanFile):
|
|||||||
def generate(self):
|
def generate(self):
|
||||||
tc = CMakeToolchain(self)
|
tc = CMakeToolchain(self)
|
||||||
|
|
||||||
# Try to find flex in system PATH first
|
if os.name == "nt": # Windows
|
||||||
flex_path = which("flex")
|
flex_path = which("win_flex") or which("win_flex.exe")
|
||||||
|
if not flex_path:
|
||||||
# If not found, fallback to flex from Conan build requirements
|
raise Exception("win_flex not found in PATH. Install winflexbison via choco.")
|
||||||
if not flex_path:
|
else:
|
||||||
flex_dep = self.dependencies.build.get("flex", None)
|
flex_path = which("flex")
|
||||||
if not flex_dep:
|
if not flex_path:
|
||||||
raise Exception("Flex not found in system PATH and not declared as build requirement")
|
raise Exception("Flex not found in system PATH. Please install flex on Linux/macOS.")
|
||||||
flex_path = join(flex_dep.package_folder, "bin", "flex")
|
|
||||||
|
|
||||||
tc.variables["FLEX_EXECUTABLE"] = flex_path
|
tc.variables["FLEX_EXECUTABLE"] = flex_path
|
||||||
|
|
||||||
tc.generate()
|
tc.generate()
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user