62
62
build :
63
63
strategy :
64
64
matrix :
65
- target : [x86_64-unknown-linux-musl, aarch64-apple-darwin, x86_64-apple-darwin]
65
+ target : [x86_64-unknown-linux-musl, aarch64-apple-darwin, x86_64-apple-darwin, x86_64-pc-windows-msvc ]
66
66
include :
67
67
- target : x86_64-unknown-linux-musl
68
68
type : musl
73
73
- target : x86_64-apple-darwin
74
74
type : native
75
75
runner : macos-13
76
+ - target : x86_64-pc-windows-msvc
77
+ type : native
78
+ runner : windows-2022
76
79
if : ${{ needs.check-version-changed.outputs.TAG == 'new' }}
77
80
runs-on : ${{ matrix.runner }}
78
81
needs : [check-version-changed]
@@ -91,10 +94,11 @@ jobs:
91
94
92
95
- name : Build
93
96
if : ${{ matrix.type == 'native' }}
97
+ shell : bash
94
98
run : |
95
99
export LLVM_SYS_181_PREFIX=$PWD/llvm-${{ matrix.target }}
96
100
make install-bin
97
- mv target/release/resolc resolc-${{ matrix.target }}
101
+ mv target/release/resolc resolc-${{ matrix.target }} || mv target/release/resolc.exe resolc-${{ matrix.target }}.exe
98
102
99
103
- name : Build
100
104
if : ${{ matrix.type == 'musl' }}
@@ -113,6 +117,7 @@ jobs:
113
117
uses : ./.github/actions/get-solc
114
118
115
119
- name : Basic Sanity Check
120
+ shell : bash
116
121
run : |
117
122
result=$(./resolc-${{ matrix.target }} --bin crates/integration/contracts/flipper.sol)
118
123
echo $result
@@ -121,7 +126,7 @@ jobs:
121
126
- uses : actions/upload-artifact@v4
122
127
with :
123
128
name : resolc-${{ matrix.target }}
124
- path : resolc-${{ matrix.target }}
129
+ path : resolc-${{ matrix.target }}*
125
130
retention-days : 1
126
131
127
132
build-wasm :
@@ -209,7 +214,7 @@ jobs:
209
214
210
215
- uses : actions/upload-artifact@v4
211
216
with :
212
- name : resolc-wasm32-unknown-emscripten.tar.gz
217
+ name : resolc-wasm32-unknown-emscripten
213
218
path : resolc-wasm32-unknown-emscripten.tar.gz
214
219
retention-days : 1
215
220
@@ -235,15 +240,17 @@ jobs:
235
240
chmod +x resolc-universal-apple-darwin
236
241
tar -czf resolc-x86_64-unknown-linux-musl.tar.gz resolc-x86_64-unknown-linux-musl
237
242
tar -czf resolc-universal-apple-darwin.tar.gz resolc-universal-apple-darwin
243
+ zip -j resolc-x86_64-pc-windows-msvc.zip resolc-x86_64-pc-windows-msvc.exe
238
244
239
245
- name : create-release
240
246
uses : softprops/action-gh-release@v2
241
247
with :
242
248
body : |
243
- ${{ needs.tag.outputs.RELEASE_NOTES }}
249
+ ## Changelog
250
+ ${{ needs.check-version-changed.outputs.RELEASE_NOTES }}
244
251
245
- # Note for macOS Users
246
- The macOS binary is unsigned and it needs to be made runnable using `xattr -c resolc-macos `.
252
+ ## Note for macOS Users
253
+ The macOS binary is unsigned and it needs to be made runnable using `xattr -c resolc-universal-apple-darwin `.
247
254
tag_name : ${{ needs.check-version-changed.outputs.PKG_VER }}
248
255
name : ${{ needs.check-version-changed.outputs.PKG_VER }}
249
256
draft : true
@@ -252,3 +259,4 @@ jobs:
252
259
resolc-x86_64-unknown-linux-musl.tar.gz
253
260
resolc-universal-apple-darwin.tar.gz
254
261
resolc-wasm32-unknown-emscripten.tar.gz
262
+ resolc-x86_64-pc-windows-msvc.zip
0 commit comments