Compare commits
4 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a81640747d | ||
|
|
4a1ed23f96 | ||
|
|
eb36d02fcb | ||
|
|
7b3a1e1835 |
37
.github/workflows/release.yml
vendored
37
.github/workflows/release.yml
vendored
@@ -99,14 +99,15 @@ jobs:
|
||||
path: ${{ env.TAR_NAME }}
|
||||
|
||||
build-windows:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Install MinGW-w64 for cross-compilation
|
||||
run: sudo apt-get update && sudo apt-get install -y mingw-w64
|
||||
- name: Install build tools
|
||||
run: choco install winflexbison -y
|
||||
shell: pwsh
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
@@ -118,26 +119,24 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install conan
|
||||
conan profile detect
|
||||
conan profile update settings.compiler.version=13 default
|
||||
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
|
||||
shell: pwsh
|
||||
|
||||
- name: Build Windows with MinGW
|
||||
- name: Build with MinGW
|
||||
run: |
|
||||
conan install . --profile:host=mingw-windows --profile:build=default --build=missing
|
||||
conan build .
|
||||
make
|
||||
shell: pwsh
|
||||
|
||||
- name: Package Windows build
|
||||
- name: Package
|
||||
run: |
|
||||
TAG=${GITHUB_REF##refs/tags/}
|
||||
FOLDER="chloride-$TAG-windows-x64"
|
||||
ZIP="$FOLDER.zip"
|
||||
mv build/bin "$FOLDER"
|
||||
cp LICENSE.txt "$FOLDER"
|
||||
zip -r "$ZIP" "$FOLDER"
|
||||
echo "TAR_NAME=$ZIP" >> $GITHUB_ENV
|
||||
$TAG = $env:GITHUB_REF -replace 'refs/tags/', ''
|
||||
$ARCH = if ([Environment]::Is64BitOperatingSystem) { 'x64' } else { 'x86' }
|
||||
$FOLDER = "chloride-$TAG-windows-$ARCH"
|
||||
$ZIP = "$FOLDER.zip"
|
||||
Rename-Item bin $FOLDER
|
||||
Copy-Item LICENSE.txt $FOLDER
|
||||
Compress-Archive -Path $FOLDER -DestinationPath $ZIP
|
||||
echo "TAR_NAME=$ZIP" >> $env:GITHUB_ENV
|
||||
shell: pwsh
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
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