Compare commits
6 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a1ed23f96 | ||
|
|
eb36d02fcb | ||
|
|
7b3a1e1835 | ||
|
|
8e53579682 | ||
|
|
0d8f262185 | ||
|
|
fc6f41d89b |
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@@ -105,9 +105,17 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Install build tools
|
||||
run: choco install winflexbison -y
|
||||
shell: pwsh
|
||||
- name: Install MSYS2 and build tools
|
||||
uses: msys2/setup-msys2@v3
|
||||
with:
|
||||
update: true
|
||||
install: >
|
||||
mingw-w64-x86_64-toolchain
|
||||
mingw-w64-x86_64-gmp
|
||||
mingw-w64-x86_64-make
|
||||
mingw-w64-x86_64-flex
|
||||
mingw-w64-x86_64-bison
|
||||
shell: msys2 {0}
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
@@ -123,9 +131,8 @@ jobs:
|
||||
|
||||
- name: Build with MinGW
|
||||
run: |
|
||||
conan install .
|
||||
conan build .
|
||||
shell: pwsh
|
||||
make
|
||||
shell: msys2 {0}
|
||||
|
||||
- name: Package
|
||||
run: |
|
||||
@@ -133,7 +140,7 @@ jobs:
|
||||
$ARCH = if ([Environment]::Is64BitOperatingSystem) { 'x64' } else { 'x86' }
|
||||
$FOLDER = "chloride-$TAG-windows-$ARCH"
|
||||
$ZIP = "$FOLDER.zip"
|
||||
Rename-Item build\bin $FOLDER
|
||||
Rename-Item bin $FOLDER
|
||||
Copy-Item LICENSE.txt $FOLDER
|
||||
Compress-Archive -Path $FOLDER -DestinationPath $ZIP
|
||||
echo "TAR_NAME=$ZIP" >> $env:GITHUB_ENV
|
||||
|
||||
@@ -51,17 +51,7 @@ set_target_properties(argon PROPERTIES
|
||||
find_package(BDWgc REQUIRED)
|
||||
find_package(gmp REQUIRED)
|
||||
|
||||
target_compile_options(argon PRIVATE -O3 -Wall -s)
|
||||
if(MSVC)
|
||||
# Disable warning C4061 (enum in switch not handled)
|
||||
target_compile_options(argon PRIVATE /wd4061)
|
||||
|
||||
# Disable Spectre mitigation warning C5045
|
||||
target_compile_options(argon PRIVATE /wd5045)
|
||||
|
||||
# Optionally, remove "treat warnings as errors" if enabled
|
||||
# target_compile_options(argon PRIVATE /WX-) # uncomment if you previously used /WX
|
||||
endif()
|
||||
target_compile_options(argon PRIVATE -O3 -Wall -Wextra -Wno-unused-function -s)
|
||||
if(NOT APPLE)
|
||||
target_link_options(argon PRIVATE -static)
|
||||
endif()
|
||||
|
||||
8
conan/profiles/windows-mingw
Normal file
8
conan/profiles/windows-mingw
Normal file
@@ -0,0 +1,8 @@
|
||||
[settings]
|
||||
os=Windows
|
||||
arch=x86_64
|
||||
compiler=gcc
|
||||
compiler.version=13
|
||||
compiler.cppstd=gnu17
|
||||
compiler.libcxx=libstdc++11
|
||||
build_type=Release
|
||||
Reference in New Issue
Block a user