@@ -66,15 +66,41 @@ jobs:
6666 path : target/release/radius2
6767
6868 build-windows :
69- name : Check (Windows)
69+ name : Build (Windows)
7070 runs-on : windows-latest
7171
7272 steps :
7373 - uses : actions/checkout@v6
74- - name : Check
75- # boolector-sys needs an external boolector.lib on x86_64-pc-windows-msvc.
76- # Keep Windows compile coverage without requiring an unsupported final link.
77- run : cargo check --workspace --all-targets --verbose --release
74+ - name : Setup MSYS2
75+ uses : msys2/setup-msys2@v2
76+ with :
77+ msystem : MINGW64
78+ path-type : inherit
79+ update : true
80+ install : >-
81+ base-devel
82+ curl
83+ git
84+ mingw-w64-x86_64-gcc
85+ mingw-w64-x86_64-cmake
86+ patch
87+
88+ - name : Add Rust GNU target
89+ run : rustup target add x86_64-pc-windows-gnu
90+
91+ - name : Build
92+ shell : msys2 {0}
93+ run : cargo build --package radius2 --target x86_64-pc-windows-gnu --verbose --release
94+
95+ - name : Package
96+ shell : powershell
97+ run : Compress-Archive -Path target\x86_64-pc-windows-gnu\release\radius2.exe -DestinationPath target\x86_64-pc-windows-gnu\release\radius2-windows-x86_64.zip
98+
99+ - name : Upload artifact
100+ uses : actions/upload-artifact@v7
101+ with :
102+ name : radius2-windows-x86_64
103+ path : target/x86_64-pc-windows-gnu/release/radius2-windows-x86_64.zip
78104
79105 release :
80106 name : Create Release
@@ -94,13 +120,15 @@ jobs:
94120 cp artifacts/radius2-linux-x86_64/radius2 release/radius2-linux-x86_64
95121 cp artifacts/radius2-linux-x86_64/*.deb release/
96122 cp artifacts/radius2-macos-x86_64/radius2 release/radius2-macos-x86_64
123+ cp artifacts/radius2-windows-x86_64/radius2-windows-x86_64.zip release/
97124 - name : Create GitHub Release
98125 uses : softprops/action-gh-release@v2
99126 with :
100127 files : |
101128 release/radius2-linux-x86_64
102129 release/*.deb
103130 release/radius2-macos-x86_64
131+ release/radius2-windows-x86_64.zip
104132 name : Release ${{ github.ref_name }}
105133 draft : false
106134 prerelease : false
0 commit comments