Commit 3ae91a3 1 parent 285c20e commit 3ae91a3 Copy full SHA for 3ae91a3
File tree 2 files changed +32
-4
lines changed
2 files changed +32
-4
lines changed Original file line number Diff line number Diff line change 20
20
- os : macOS-latest
21
21
system : x86_64-darwin
22
22
attr : native
23
- - os : ubuntu-latest
24
- system : x86_64-linux
25
- attr : windows
23
+ # Because of
24
+ # https://github.com/input-output-hk/haskell.nix/issues/2228, we build
25
+ # (outside of Nix) with a non-cross GHC for Windows for now.
26
+ # - os: ubuntu-latest
27
+ # system: x86_64-linux
28
+ # attr: windows
26
29
name : Build ${{ matrix.attr }} binary on ${{ matrix.system }}
27
30
runs-on : ${{ matrix.os }}
28
31
steps :
51
54
upload_url : ${{ github.event.release.upload_url }}
52
55
asset_path : ormolu.zip
53
56
asset_name : ormolu-${{ steps.system.outputs.SYSTEM }}.zip
57
+ build-windows :
58
+ name : Build Windows binary
59
+ runs-on : windows-latest
60
+ steps :
61
+ - uses : actions/checkout@v4
62
+ - uses : haskell-actions/setup@v2
63
+ with :
64
+ ghc-version : ' 9.10'
65
+ - name : Build binary
66
+ run : cabal build exe:ormolu
67
+ env :
68
+ ORMOLU_REV : ${{ github.sha }}
69
+ - name : Prepare upload
70
+ run : |
71
+ mkdir result
72
+ cp $(cabal list-bin exe:ormolu) result
73
+ cd result
74
+ 7z a ../ormolu.zip .
75
+ - uses : shogo82148/actions-upload-release-asset@v1
76
+ with :
77
+ upload_url : ${{ github.event.release.upload_url }}
78
+ asset_path : ormolu.zip
79
+ asset_name : ormolu-x86_64-windows.zip
54
80
test :
55
81
strategy :
56
82
fail-fast : false
66
92
system : x86_64-windows
67
93
name : Test built binaries
68
94
runs-on : ${{ matrix.os }}
69
- needs : build
95
+ needs : [ build, build-windows]
70
96
steps :
71
97
- name : Download and extract binary
72
98
run : |
Original file line number Diff line number Diff line change 1
1
packages : . extract-hackage-info
2
2
3
+ index-state : 2025-01-16T23:07 :37Z
4
+
3
5
tests : True
4
6
multi-repl : True
5
7
You can’t perform that action at this time.
0 commit comments