Compare commits
8 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd750ab164 | ||
|
|
922b129250 | ||
|
|
c2df9c0e83 | ||
|
|
923503493e | ||
|
|
686cb08f11 | ||
|
|
1cfb4acda6 | ||
|
|
436f30330b | ||
|
|
5381967ed6 |
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
@@ -26,8 +26,10 @@ jobs:
|
||||
# Windows
|
||||
- name: Install build tools (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: choco install winflexbison -y
|
||||
run: |
|
||||
choco install winflexbison mingw -y
|
||||
shell: pwsh
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -72,8 +74,20 @@ jobs:
|
||||
- name: Install dependencies and build (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
conan install . --build=missing
|
||||
conan build .
|
||||
conan install . \
|
||||
-s compiler=gcc \
|
||||
-s compiler.version=13 \
|
||||
-s compiler.libcxx=libstdc++11 \
|
||||
-s arch=x86_64 \
|
||||
-s os=Windows \
|
||||
--build=missing
|
||||
conan install . \
|
||||
-s compiler=gcc \
|
||||
-s compiler.version=13 \
|
||||
-s compiler.libcxx=libstdc++11 \
|
||||
-s arch=x86_64 \
|
||||
-s os=Windows \
|
||||
--build=missing
|
||||
shell: pwsh
|
||||
|
||||
- name: Determine if prerelease (Linux/macOS)
|
||||
@@ -111,7 +125,7 @@ jobs:
|
||||
FOLDER_NAME="chloride-$TAG-$OS-$ARCH"
|
||||
TAR_NAME="$FOLDER_NAME.tar.gz"
|
||||
mv build/bin "$FOLDER_NAME"
|
||||
cp LICENSE "$FOLDER_NAME"
|
||||
cp LICENSE.txt "$FOLDER_NAME"
|
||||
tar -czf "$TAR_NAME" "$FOLDER_NAME"
|
||||
echo "TAR_NAME=$TAR_NAME" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
@@ -124,7 +138,7 @@ jobs:
|
||||
$FOLDER_NAME = "chloride-$TAG-windows-$ARCH"
|
||||
$TAR_NAME = "$FOLDER_NAME.zip"
|
||||
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
|
||||
echo "TAR_NAME=$TAR_NAME" >> $env:GITHUB_ENV
|
||||
shell: pwsh
|
||||
@@ -136,5 +150,7 @@ jobs:
|
||||
name: Release ${{ github.ref_name }}
|
||||
body: Automated release based on tag ${{ github.ref_name }}
|
||||
draft: false
|
||||
updateOnlyUnreleased: true
|
||||
replacesArtifacts: true
|
||||
prerelease: ${{ runner.os == 'Windows' && steps.prerelease_check_win.outputs.prerelease || steps.prerelease_check_unix.outputs.prerelease }}
|
||||
artifacts: ${{ env.TAR_NAME }}
|
||||
@@ -52,7 +52,9 @@ find_package(BDWgc REQUIRED)
|
||||
find_package(gmp REQUIRED)
|
||||
|
||||
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
|
||||
BDWgc::BDWgc
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
from conan import ConanFile
|
||||
from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps, cmake_layout
|
||||
from shutil import which
|
||||
import os
|
||||
|
||||
class ArgonConan(ConanFile):
|
||||
name = "argon"
|
||||
@@ -40,7 +41,7 @@ class ArgonConan(ConanFile):
|
||||
if not flex_path:
|
||||
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.replace("\\", "\\\\")
|
||||
tc.generate()
|
||||
|
||||
def build(self):
|
||||
|
||||
Reference in New Issue
Block a user