@@ -9,29 +9,34 @@ on:
99 types: [prereleased]
1010
1111jobs:
12− check-formatting:
13− name: Check Haskell formatting
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
27+
28+ check_versions:
1429 runs-on: ubuntu-latest
1530 steps:
1631 - uses: actions/checkout@v2
32+ with:
33+ submodules: recursive
1734
1835 - name: Common setup
1936 uses: ./.github/actions/common_setup
2037 with:
2138 authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
2239
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
27−
28− check_versions:
29− runs-on: ubuntu-latest
30− steps:
31− - uses: actions/checkout@v2
32− with:
33− submodules: recursive
34−
3540 - name: Check library version
3641 if: github.event_name == 'release'
3742 run: |
@@ -154,13 +159,18 @@ jobs:
154159 tag: ${{ github.ref }}
155160
156161 dist:
157− needs: check_versions
162+ needs: [check_versions, Linux]
158163 runs-on: ubuntu-latest
159164 steps:
160165 - uses: actions/checkout@v2
161166 with:
162167 submodules: recursive
163168
169+ - name: Common setup
170+ uses: ./.github/actions/common_setup
171+ with:
172+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
173+
164174 - name: Cache
165175 uses: actions/cache@v1
166176 with:
@@ -179,7 +189,7 @@ jobs:
179189
180190 - name: Build dist
181191 run: |
182− stack sdist --pvp-bounds both --test-tarball
192+ stack sdist --pvp-bounds both
183193 echo "distPath=$(stack path | awk -F ": " '/dist-dir/ {print $2}')" >> $GITHUB_ENV
184194
185195 - name: Upload compaREST sources artifact
@@ -203,7 +213,7 @@ jobs:
203213 env:
204214 HACKAGE_KEY: ${{ secrets.HACKAGE_KEY }}
205215 run: |
206− stack upload --pvp-bounds both --test-tarball --candidate .
216+ stack upload --pvp-bounds both --candidate .
207217
208218 macOS:
209219 needs: check_versions
@@ -242,39 +252,39 @@ jobs:
242252 file: compaREST-macOS-x86.zip
243253 tag: ${{ github.ref }}
244254
245− Linux-Windows:
246− needs: check_versions
247− runs-on: ubuntu-latest
248− steps:
249− - uses: actions/checkout@v2
250− with:
251− submodules: recursive
252−
253− - name: Common setup
254− uses: ./.github/actions/common_setup
255− with:
256− authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
257−
258− - name: Build Windows binary
259− run: |
260− cp -LR $(nix-build -A WindowsCompaRESTBin -j auto --no-out-link)/bin compaREST
261−
262− - name: Upload Windows compaREST bundle
263− uses: actions/upload-artifact@v2
264− with:
265− name: compaREST binary – Windows
266− path: compaREST
267−
268− - name: Zip Release Assets
269− if: github.event_name == 'release'
270− shell: bash
271− run: |
272− zip -r compaREST-Windows.zip compaREST
273−
274− - name: Upload compaREST binary – Windows to release
275− if: github.event_name == 'release'
276− uses: svenstaro/upload-release-action@2.2.1
277− with:
278− repo_token: ${{ secrets.GITHUB_TOKEN }}
279− file: compaREST-Windows.zip
280− 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 }}