Compare commits
5 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a1ed23f96 | ||
|
|
eb36d02fcb | ||
|
|
7b3a1e1835 | ||
|
|
8e53579682 | ||
|
|
0d8f262185 |
46
.github/workflows/release.yml
vendored
46
.github/workflows/release.yml
vendored
@@ -99,14 +99,23 @@ jobs:
|
|||||||
path: ${{ env.TAR_NAME }}
|
path: ${{ env.TAR_NAME }}
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: ubuntu-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Install MinGW-w64 for cross-compilation
|
- name: Install MSYS2 and build tools
|
||||||
run: sudo apt-get update && sudo apt-get install -y mingw-w64
|
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
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
@@ -118,27 +127,24 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install conan
|
pip install conan
|
||||||
conan profile detect
|
conan profile detect
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
- name: Build Windows with MinGW
|
- name: Build with MinGW
|
||||||
run: |
|
run: |
|
||||||
conan install . \
|
make
|
||||||
-s os=Windows \
|
shell: msys2 {0}
|
||||||
-s compiler=gcc \
|
|
||||||
-s compiler.version=13 \
|
|
||||||
-s compiler.libcxx=libstdc++11 \
|
|
||||||
-s arch=x86_64 \
|
|
||||||
--build=missing
|
|
||||||
conan build .
|
|
||||||
|
|
||||||
- name: Package Windows build
|
- name: Package
|
||||||
run: |
|
run: |
|
||||||
TAG=${GITHUB_REF##refs/tags/}
|
$TAG = $env:GITHUB_REF -replace 'refs/tags/', ''
|
||||||
FOLDER="chloride-$TAG-windows-x64"
|
$ARCH = if ([Environment]::Is64BitOperatingSystem) { 'x64' } else { 'x86' }
|
||||||
ZIP="$FOLDER.zip"
|
$FOLDER = "chloride-$TAG-windows-$ARCH"
|
||||||
mv build/bin "$FOLDER"
|
$ZIP = "$FOLDER.zip"
|
||||||
cp LICENSE.txt "$FOLDER"
|
Rename-Item bin $FOLDER
|
||||||
zip -r "$ZIP" "$FOLDER"
|
Copy-Item LICENSE.txt $FOLDER
|
||||||
echo "TAR_NAME=$ZIP" >> $GITHUB_ENV
|
Compress-Archive -Path $FOLDER -DestinationPath $ZIP
|
||||||
|
echo "TAR_NAME=$ZIP" >> $env:GITHUB_ENV
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
@@ -51,17 +51,7 @@ set_target_properties(argon PROPERTIES
|
|||||||
find_package(BDWgc REQUIRED)
|
find_package(BDWgc REQUIRED)
|
||||||
find_package(gmp REQUIRED)
|
find_package(gmp REQUIRED)
|
||||||
|
|
||||||
target_compile_options(argon PRIVATE -O3 -Wall -s)
|
target_compile_options(argon PRIVATE -O3 -Wall -Wextra -Wno-unused-function -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()
|
|
||||||
if(NOT APPLE)
|
if(NOT APPLE)
|
||||||
target_link_options(argon PRIVATE -static)
|
target_link_options(argon PRIVATE -static)
|
||||||
endif()
|
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