Compare commits
5 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
922b129250 | ||
|
|
c2df9c0e83 | ||
|
|
923503493e | ||
|
|
686cb08f11 | ||
|
|
1cfb4acda6 |
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@@ -23,16 +23,19 @@ jobs:
|
||||
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
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
# Windows
|
||||
- name: Install build tools (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
choco install winflexbison mingw -y
|
||||
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
|
||||
shell: pwsh
|
||||
|
||||
- name: Setup Python (needed for Conan)
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
@@ -73,7 +76,7 @@ jobs:
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
conan install . --build=missing
|
||||
conan build .
|
||||
conan build . --config Release
|
||||
shell: pwsh
|
||||
|
||||
- name: Determine if prerelease (Linux/macOS)
|
||||
@@ -136,5 +139,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
|
||||
|
||||
@@ -41,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