Compare commits

..

5 Commits

Author SHA1 Message Date
William Bell
a81640747d fix release.yml 2025-08-15 22:07:25 +01:00
William Bell
4a1ed23f96 fix release.yml 2025-08-15 22:05:57 +01:00
William Bell
eb36d02fcb fix release.yml 2025-08-15 22:03:23 +01:00
William Bell
7b3a1e1835 fix release.yml 2025-08-15 21:52:16 +01:00
William Bell
8e53579682 fix release.yml 2025-08-15 21:36:51 +01:00
2 changed files with 27 additions and 20 deletions

View File

@@ -99,14 +99,15 @@ 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 build tools
run: sudo apt-get update && sudo apt-get install -y mingw-w64 run: choco install winflexbison -y
shell: pwsh
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
@@ -117,27 +118,25 @@ jobs:
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install conan pip install conan
conan profile new default --detect conan profile detect
conan profile update settings.compiler.version=13 default shell: pwsh
conan profile update settings.compiler=gcc default
conan profile update settings.os=Windows default
conan profile update env.CC=x86_64-w64-mingw32-gcc default
conan profile update env.CXX=x86_64-w64-mingw32-g++ default
- name: Build Windows with MinGW - name: Build with MinGW
run: | run: |
conan install . --profile:host=default --profile:build=default --build=missing make
conan build . shell: pwsh
- 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

View 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