File tree Expand file tree Collapse file tree 5 files changed +103
-10
lines changed
Expand file tree Collapse file tree 5 files changed +103
-10
lines changed Original file line number Diff line number Diff line change 1+ name : Maintain release bounds
2+
3+ on : workflow_dispatch
4+
5+ permissions :
6+ contents : write
7+ pull-requests : write
8+
9+ env :
10+ LANG : en_US.UTF-8
11+
12+ jobs :
13+ maint-run :
14+ name : Update release bounds
15+ runs-on : ubuntu-latest
16+ outputs :
17+ results : ${{ steps.maint.outputs.maint }}
18+
19+ steps :
20+ - uses : actions/checkout@v4
21+ with :
22+ token : ${{ secrets.workflow_token }}
23+ - uses : cachix/install-nix-action@v31
24+ with :
25+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
26+ - uses : cachix/cachix-action@v15
27+ with :
28+ name : tek
29+ signingKey : ${{ secrets.CACHIX_SIGNING_KEY }}
30+ - id : maint
31+ name : Run maint
32+ run : nix run .#maint -- --pr --fetch --output=json --target=github
33+
34+ maint-pr :
35+ name : Create PR for release bounds updates
36+ runs-on : ubuntu-latest
37+ needs : maint-run
38+ strategy :
39+ matrix :
40+ package : ${{ fromJSON(needs.maint-run.outputs.results).changes }}
41+ steps :
42+ - uses : actions/checkout@v4
43+ - id : pr
44+ name : Create PR
45+ run : |
46+ gh pr create \
47+ --base "${{ matrix.package.baseBranch }}" \
48+ --body "${{ matrix.package.message }}" \
49+ --title "revision for ${{ matrix.package.package }}" \
50+ --head "${{ matrix.package.branch }}"
51+ env :
52+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Publish revision for updated bounds
2+
3+ on :
4+ workflow_dispatch :
5+ pull_request :
6+ types : [closed]
7+ branches : ['release/**']
8+
9+ env :
10+ branch : ${{ github.event_name == 'workflow_dispatch' && github.ref_name || github.base_ref }}
11+
12+ jobs :
13+ revision :
14+ name : Publish revision
15+ if : github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v4
19+ - uses : cachix/install-nix-action@v31
20+ with :
21+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
22+ - uses : cachix/cachix-action@v15
23+ with :
24+ name : tek
25+ signingKey : ${{ secrets.CACHIX_SIGNING_KEY }}
26+ - id : revision
27+ name : Publish revision
28+ run : >
29+ nix run .#revision -- --fetch
30+ --hackage='hackage.haskell.org:password:${{ secrets.hackage_password }}'
31+ --branch "$branch"
Original file line number Diff line number Diff line change 1212 src = ./packages/exon ;
1313
1414 cabal = {
15+ language = "GHC2021" ;
1516 license = "BSD-2-Clause-Patent" ;
1617 license-file = "LICENSE" ;
1718 author = "Torsten Schmits" ;
6566 latest . compiler = "ghc912" ;
6667 } ;
6768
69+ hackage . repos . "hackage.haskell.org" = {
70+ user = "tek" ;
71+ password = "" ;
72+ } ;
73+
6874 envs . dev . overrides = { bench , ...} : {
6975 exon = bench ;
7076 } ;
9298 th-abstraction = hackage "0.7.1.0" "09wr7x9bpzyrys8id1mavk9wvqhh2smxdkfwi82kpcycm7a1z7sx" ;
9399 } ;
94100
101+ ui . experimental . managed-maint = true ;
102+
103+ internal . hixCli . dev = true ;
104+
95105 } ) ;
96106}
Original file line number Diff line number Diff line change @@ -61,8 +61,10 @@ library
6161 LiberalTypeSynonyms
6262 MonadComprehensions
6363 MultiWayIf
64+ NoFieldSelectors
6465 OverloadedLabels
6566 OverloadedLists
67+ OverloadedRecordDot
6668 OverloadedStrings
6769 PackageImports
6870 PartialTypeSignatures
@@ -78,8 +80,6 @@ library
7880 UndecidableInstances
7981 UnicodeSyntax
8082 ViewPatterns
81- OverloadedRecordDot
82- NoFieldSelectors
8383 ghc-options : -Wall -Widentities -Wincomplete-uni-patterns -Wmissing-deriving-strategies -Wredundant-constraints -Wunused-type-patterns -Wunused-packages
8484 build-depends :
8585 base >= 4.16.4.0 && < 4.22
@@ -123,8 +123,10 @@ test-suite exon-test
123123 LiberalTypeSynonyms
124124 MonadComprehensions
125125 MultiWayIf
126+ NoFieldSelectors
126127 OverloadedLabels
127128 OverloadedLists
129+ OverloadedRecordDot
128130 OverloadedStrings
129131 PackageImports
130132 PartialTypeSignatures
@@ -140,8 +142,6 @@ test-suite exon-test
140142 UndecidableInstances
141143 UnicodeSyntax
142144 ViewPatterns
143- OverloadedRecordDot
144- NoFieldSelectors
145145 ghc-options : -threaded -rtsopts -with-rtsopts=-N -Wall -Widentities -Wincomplete-uni-patterns -Wmissing-deriving-strategies -Wredundant-constraints -Wunused-type-patterns -Wunused-packages
146146 build-depends :
147147 base >= 4.16.4.0 && < 4.22
@@ -179,8 +179,10 @@ benchmark exon-bench
179179 LiberalTypeSynonyms
180180 MonadComprehensions
181181 MultiWayIf
182+ NoFieldSelectors
182183 OverloadedLabels
183184 OverloadedLists
185+ OverloadedRecordDot
184186 OverloadedStrings
185187 PackageImports
186188 PartialTypeSignatures
@@ -196,8 +198,6 @@ benchmark exon-bench
196198 UndecidableInstances
197199 UnicodeSyntax
198200 ViewPatterns
199- OverloadedRecordDot
200- NoFieldSelectors
201201 ghc-options : -Wall -Widentities -Wincomplete-uni-patterns -Wmissing-deriving-strategies -Wredundant-constraints -Wunused-type-patterns -Wunused-packages
202202 build-depends :
203203 base >= 4.16.4.0 && < 4.22
You can’t perform that action at this time.
0 commit comments