Compare commits
5 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc6f41d89b | ||
|
|
6a7ce72eb7 | ||
|
|
f84e5429a5 | ||
|
|
f4c7294267 | ||
|
|
be4b04a286 |
41
.github/workflows/release.yml
vendored
41
.github/workflows/release.yml
vendored
@@ -99,15 +99,14 @@ jobs:
|
|||||||
path: ${{ env.TAR_NAME }}
|
path: ${{ env.TAR_NAME }}
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Install build tools
|
- name: Install MinGW-w64 for cross-compilation
|
||||||
run: choco install winflexbison mingw -y
|
run: sudo apt-get update && sudo apt-get install -y mingw-w64
|
||||||
shell: pwsh
|
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
@@ -119,31 +118,27 @@ 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 with MinGW
|
- name: Build Windows with MinGW
|
||||||
run: |
|
run: |
|
||||||
conan install . `
|
conan install . \
|
||||||
-s compiler=gcc `
|
-s os=Windows \
|
||||||
-s compiler.version=13 `
|
-s compiler=gcc \
|
||||||
-s compiler.libcxx=libstdc++11 `
|
-s compiler.version=13 \
|
||||||
-s arch=x86_64 `
|
-s compiler.libcxx=libstdc++11 \
|
||||||
-s os=Windows `
|
-s arch=x86_64 \
|
||||||
--build=missing
|
--build=missing
|
||||||
conan build .
|
conan build .
|
||||||
shell: pwsh
|
|
||||||
|
|
||||||
- name: Package
|
- name: Package Windows build
|
||||||
run: |
|
run: |
|
||||||
$TAG = $env:GITHUB_REF -replace 'refs/tags/', ''
|
TAG=${GITHUB_REF##refs/tags/}
|
||||||
$ARCH = if ([Environment]::Is64BitOperatingSystem) { 'x64' } else { 'x86' }
|
FOLDER="chloride-$TAG-windows-x64"
|
||||||
$FOLDER = "chloride-$TAG-windows-$ARCH"
|
ZIP="$FOLDER.zip"
|
||||||
$ZIP = "$FOLDER.zip"
|
mv build/bin "$FOLDER"
|
||||||
Rename-Item build\bin $FOLDER
|
cp LICENSE.txt "$FOLDER"
|
||||||
Copy-Item LICENSE.txt $FOLDER
|
zip -r "$ZIP" "$FOLDER"
|
||||||
Compress-Archive -Path $FOLDER -DestinationPath $ZIP
|
echo "TAR_NAME=$ZIP" >> $GITHUB_ENV
|
||||||
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,7 +51,17 @@ 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 -Wextra -Wno-unused-function -s)
|
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()
|
||||||
if(NOT APPLE)
|
if(NOT APPLE)
|
||||||
target_link_options(argon PRIVATE -static)
|
target_link_options(argon PRIVATE -static)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user