Compare commits
9 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
51f6a88ce8 | ||
|
|
f420273471 | ||
|
|
4b2a747338 | ||
|
|
5277814af0 | ||
|
|
8928ab2d99 | ||
|
|
d08b307c6e | ||
|
|
6474329afc | ||
|
|
c49e67c839 | ||
|
|
25cb96e473 |
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@@ -117,12 +117,21 @@ jobs:
|
|||||||
base-devel
|
base-devel
|
||||||
mingw-w64-x86_64-gcc
|
mingw-w64-x86_64-gcc
|
||||||
mingw-w64-x86_64-make
|
mingw-w64-x86_64-make
|
||||||
mingw-w64-x86_64-gmp
|
mingw-w64-x86_64-cmake
|
||||||
mingw-w64-x86_64-gc
|
mingw-w64-x86_64-python
|
||||||
|
mingw-w64-x86_64-python-pip
|
||||||
|
msys/flex
|
||||||
|
|
||||||
|
- name: Install Conan
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install conan
|
||||||
|
conan profile detect
|
||||||
|
|
||||||
- name: Build Project
|
- name: Build Project
|
||||||
run: |
|
run: |
|
||||||
make windows
|
conan install . --profile mingw-profile.txt --build=missing
|
||||||
|
conan build . --profile mingw-profile.txt
|
||||||
|
|
||||||
- name: Package
|
- name: Package
|
||||||
run: |
|
run: |
|
||||||
@@ -130,7 +139,7 @@ jobs:
|
|||||||
$ARCH = if ([Environment]::Is64BitOperatingSystem) { 'x64' } else { 'x86' }
|
$ARCH = if ([Environment]::Is64BitOperatingSystem) { 'x64' } else { 'x86' }
|
||||||
$FOLDER = "chloride-$TAG-windows-$ARCH"
|
$FOLDER = "chloride-$TAG-windows-$ARCH"
|
||||||
$ZIP = "$FOLDER.zip"
|
$ZIP = "$FOLDER.zip"
|
||||||
Rename-Item bin $FOLDER
|
Rename-Item build/bin $FOLDER
|
||||||
Copy-Item LICENSE.txt $FOLDER
|
Copy-Item LICENSE.txt $FOLDER
|
||||||
Compress-Archive -Path $FOLDER -DestinationPath $ZIP
|
Compress-Archive -Path $FOLDER -DestinationPath $ZIP
|
||||||
echo "TAR_NAME=$ZIP" >> $env:GITHUB_ENV
|
echo "TAR_NAME=$ZIP" >> $env:GITHUB_ENV
|
||||||
|
|||||||
6
Makefile
6
Makefile
@@ -12,7 +12,11 @@ LEXER_SRC = src/lexer/lex.l
|
|||||||
LEXER_C = src/lexer/lex.yy.c
|
LEXER_C = src/lexer/lex.yy.c
|
||||||
LEXER_H = src/lexer/lex.yy.h
|
LEXER_H = src/lexer/lex.yy.h
|
||||||
CFLAGS = $(ARCHFLAGS) -lm -lgc -lgmp -Wall -Wextra -Wno-unused-function -Werror=unused-result -Iexternal/cwalk/include -Iexternal/libdye/include
|
CFLAGS = $(ARCHFLAGS) -lm -lgc -lgmp -Wall -Wextra -Wno-unused-function -Werror=unused-result -Iexternal/cwalk/include -Iexternal/libdye/include
|
||||||
LDFLAGS = -Wl,-Bstatic -lgc -lgmp -Wl,-Bdynamic -lm
|
LDFLAGS = -lgc -lgmp -lm
|
||||||
|
|
||||||
|
ifeq ($(MAKECMDGOALS),windows)
|
||||||
|
LDFLAGS = -Wl,-Bstatic -lgc -lgmp -Wl,-Bdynamic -lm
|
||||||
|
endif
|
||||||
|
|
||||||
all: $(BINARY)
|
all: $(BINARY)
|
||||||
|
|
||||||
|
|||||||
11
conanfile.py
11
conanfile.py
@@ -33,14 +33,9 @@ class ArgonConan(ConanFile):
|
|||||||
os.environ["CONAN_NON_INTERACTIVE"] = "1"
|
os.environ["CONAN_NON_INTERACTIVE"] = "1"
|
||||||
tc = CMakeToolchain(self)
|
tc = CMakeToolchain(self)
|
||||||
|
|
||||||
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 flex_path:
|
raise Exception("Flex not found in system PATH. Please install flex on Linux/macOS.")
|
||||||
raise Exception("win_flex not found in PATH. Install winflexbison via choco.")
|
|
||||||
else:
|
|
||||||
flex_path = which("flex")
|
|
||||||
if not flex_path:
|
|
||||||
raise Exception("Flex not found in system PATH. Please install flex on Linux/macOS.")
|
|
||||||
|
|
||||||
tc.variables["FLEX_EXECUTABLE"] = flex_path.replace("\\", "\\\\")
|
tc.variables["FLEX_EXECUTABLE"] = flex_path.replace("\\", "\\\\")
|
||||||
tc.generate()
|
tc.generate()
|
||||||
|
|||||||
12
mingw-profile.txt
Normal file
12
mingw-profile.txt
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[settings]
|
||||||
|
os=Windows
|
||||||
|
compiler=gcc
|
||||||
|
compiler.version=12
|
||||||
|
compiler.libcxx=libstdc++11
|
||||||
|
compiler.threads=posix
|
||||||
|
compiler.exception=seh
|
||||||
|
arch=x86_64
|
||||||
|
build_type=Release
|
||||||
|
|
||||||
|
[tool_requires]
|
||||||
|
mingw-builds/12.2.0
|
||||||
Reference in New Issue
Block a user