@@ -9,23 +9,23 @@ on:
99 types: [prereleased]
1010
1111jobs:
12− check-formatting:
13− name: Check Haskell formatting
14− runs-on: ubuntu-latest
15− steps:
16− - uses: actions/checkout@v2
17−
18− - name: Common setup
19− uses: ./.github/actions/common_setup
20− with:
21− authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
22−
23− - name: Run fourmolu
24− run: |
25− nix-shell nix/ci.nix -j auto --run "git ls-files '*.hs' | xargs fourmolu -m inplace -o -XRecursiveDo -o -XTypeApplications -o -XPatternSynonyms -o -XBangPatterns"
26− git diff --exit-code
12+# check-formatting:
13+# name: Check Haskell formatting
14+# runs-on: ubuntu-latest
15+# steps:
16+# - uses: actions/checkout@v2
17+#
18+# - name: Common setup
19+# uses: ./.github/actions/common_setup
20+# with:
21+# authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
22+#
23+# - name: Run fourmolu
24+# run: |
25+# nix-shell nix/ci.nix -j auto --run "git ls-files '*.hs' | xargs fourmolu -m inplace -o -XRecursiveDo -o -XTypeApplications -o -XPatternSynonyms -o -XBangPatterns"
26+# git diff --exit-code
2727
28− policeman:
28+ check_versions:
2929 runs-on: ubuntu-latest
3030 steps:
3131 - uses: actions/checkout@v2
@@ -37,25 +37,6 @@ jobs:
3737 with:
3838 authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
3939
40− - name: Run policeman
41− run: |
42− jq --argjson msg "$( $(nix-build ci/policeman.nix)/bin/policeman | grep -v "⚙" | jq -aRs . )" ".[0].message = \$msg" <policeman.json >message.json
43− cat message.json
44−
45− - name: Post notice
46− uses: yuzutech/annotations-action@v0.4.0
47− with:
48− title: 👮 Policeman
49− repo-token: "${{ secrets.GITHUB_TOKEN }}"
50− input: "./message.json"
51−
52− check_versions:
53− runs-on: ubuntu-latest
54− steps:
55− - uses: actions/checkout@v2
56− with:
57− submodules: recursive
58−
5940 - name: Check library version
6041 if: github.event_name == 'release'
6142 run: |
@@ -178,13 +159,18 @@ jobs:
178159 tag: ${{ github.ref }}
179160
180161 dist:
181− needs: check_versions
162+ needs: [check_versions, Linux]
182163 runs-on: ubuntu-latest
183164 steps:
184165 - uses: actions/checkout@v2
185166 with:
186167 submodules: recursive
187168
169+ - name: Common setup
170+ uses: ./.github/actions/common_setup
171+ with:
172+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
173+
188174 - name: Cache
189175 uses: actions/cache@v1
190176 with:
@@ -203,7 +189,7 @@ jobs:
203189
204190 - name: Build dist
205191 run: |
206− stack sdist --pvp-bounds both --test-tarball
192+ stack sdist --pvp-bounds both
207193 echo "distPath=$(stack path | awk -F ": " '/dist-dir/ {print $2}')" >> $GITHUB_ENV
208194
209195 - name: Upload compaREST sources artifact
@@ -227,7 +213,7 @@ jobs:
227213 env:
228214 HACKAGE_KEY: ${{ secrets.HACKAGE_KEY }}
229215 run: |
230− stack upload --pvp-bounds both --test-tarball --candidate .
216+ stack upload --pvp-bounds both --candidate .
231217
232218 macOS:
233219 needs: check_versions
@@ -266,39 +252,39 @@ jobs:
266252 file: compaREST-macOS-x86.zip
267253 tag: ${{ github.ref }}
268254
269− Linux-Windows:
270− needs: check_versions
271− runs-on: ubuntu-latest
272− steps:
273− - uses: actions/checkout@v2
274− with:
275− submodules: recursive
276−
277− - name: Common setup
278− uses: ./.github/actions/common_setup
279− with:
280− authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
281−
282− - name: Build Windows binary
283− run: |
284− cp -LR $(nix-build -A WindowsCompaRESTBin -j auto --no-out-link)/bin compaREST
285−
286− - name: Upload Windows compaREST bundle
287− uses: actions/upload-artifact@v2
288− with:
289− name: compaREST binary – Windows
290− path: compaREST
291−
292− - name: Zip Release Assets
293− if: github.event_name == 'release'
294− shell: bash
295− run: |
296− zip -r compaREST-Windows.zip compaREST
297−
298− - name: Upload compaREST binary – Windows to release
299− if: github.event_name == 'release'
300− uses: svenstaro/upload-release-action@2.2.1
301− with:
302− repo_token: ${{ secrets.GITHUB_TOKEN }}
303− file: compaREST-Windows.zip
304− tag: ${{ github.ref }}
255+# Linux-Windows:
256+# needs: check_versions
257+# runs-on: ubuntu-latest
258+# steps:
259+# - uses: actions/checkout@v2
260+# with:
261+# submodules: recursive
262+#
263+# - name: Common setup
264+# uses: ./.github/actions/common_setup
265+# with:
266+# authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
267+#
268+# - name: Build Windows binary
269+# run: |
270+# cp -LR $(nix-build -A WindowsCompaRESTBin -j auto --no-out-link)/bin compaREST
271+#
272+# - name: Upload Windows compaREST bundle
273+# uses: actions/upload-artifact@v2
274+# with:
275+# name: compaREST binary – Windows
276+# path: compaREST
277+#
278+# - name: Zip Release Assets
279+# if: github.event_name == 'release'
280+# shell: bash
281+# run: |
282+# zip -r compaREST-Windows.zip compaREST
283+#
284+# - name: Upload compaREST binary – Windows to release
285+# if: github.event_name == 'release'
286+# uses: svenstaro/upload-release-action@2.2.1
287+# with:
288+# repo_token: ${{ secrets.GITHUB_TOKEN }}
289+# file: compaREST-Windows.zip
290+# tag: ${{ github.ref }}