@@ -9,29 +9,34 @@ on:
9 types: [prereleased]
9 types: [prereleased]
12− check-formatting:
12+# check-formatting:
13− name: Check Haskell formatting
13+# name: Check Haskell formatting
14+# runs-on: ubuntu-latest
16+# - uses: actions/checkout@v2
18+# - name: Common setup
19+# uses: ./.github/actions/common_setup
21+# authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
23+# - name: Run fourmolu
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
14 runs-on: ubuntu-latest
29 runs-on: ubuntu-latest
16 - uses: actions/checkout@v2
31 - uses: actions/checkout@v2
33+ submodules: recursive
18 - name: Common setup
35 - name: Common setup
19 uses: ./.github/actions/common_setup
36 uses: ./.github/actions/common_setup
21 authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
38 authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
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"
29− runs-on: ubuntu-latest
31− - uses: actions/checkout@v2
33− submodules: recursive
35 - name: Check library version
40 - name: Check library version
36 if: github.event_name == 'release'
41 if: github.event_name == 'release'
@@ -154,13 +159,18 @@ jobs:
154 tag: ${{ github.ref }}
159 tag: ${{ github.ref }}
157− needs: check_versions
162+ needs: [check_versions, Linux]
158 runs-on: ubuntu-latest
163 runs-on: ubuntu-latest
160 - uses: actions/checkout@v2
165 - uses: actions/checkout@v2
162 submodules: recursive
167 submodules: recursive
169+ - name: Common setup
170+ uses: ./.github/actions/common_setup
172+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
164 - name: Cache
174 - name: Cache
165 uses: actions/cache@v1
175 uses: actions/cache@v1
@@ -179,7 +189,7 @@ jobs:
180 - name: Build dist
190 - name: Build dist
182− stack sdist --pvp-bounds both --test-tarball
192+ stack sdist --pvp-bounds both
183 echo "distPath=$(stack path | awk -F ": " '/dist-dir/ {print $2}')" >> $GITHUB_ENV
193 echo "distPath=$(stack path | awk -F ": " '/dist-dir/ {print $2}')" >> $GITHUB_ENV
185 - name: Upload compaREST sources artifact
195 - name: Upload compaREST sources artifact
@@ -203,7 +213,7 @@ jobs:
204 HACKAGE_KEY: ${{ secrets.HACKAGE_KEY }}
214 HACKAGE_KEY: ${{ secrets.HACKAGE_KEY }}
206− stack upload --pvp-bounds both --test-tarball --candidate .
216+ stack upload --pvp-bounds both --candidate .
209 needs: check_versions
219 needs: check_versions
@@ -242,39 +252,39 @@ jobs:
242 file: compaREST-macOS-x86.zip
252 file: compaREST-macOS-x86.zip
243 tag: ${{ github.ref }}
253 tag: ${{ github.ref }}
245− Linux-Windows:
255+# Linux-Windows:
246− needs: check_versions
256+# needs: check_versions
247− runs-on: ubuntu-latest
257+# runs-on: ubuntu-latest
249− - uses: actions/checkout@v2
259+# - uses: actions/checkout@v2
251− submodules: recursive
261+# submodules: recursive
253− - name: Common setup
263+# - name: Common setup
254− uses: ./.github/actions/common_setup
264+# uses: ./.github/actions/common_setup
256− authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
266+# authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
258− - name: Build Windows binary
268+# - name: Build Windows binary
260− cp -LR $(nix-build -A WindowsCompaRESTBin -j auto --no-out-link)/bin compaREST
270+# cp -LR $(nix-build -A WindowsCompaRESTBin -j auto --no-out-link)/bin compaREST
262− - name: Upload Windows compaREST bundle
272+# - name: Upload Windows compaREST bundle
263− uses: actions/upload-artifact@v2
273+# uses: actions/upload-artifact@v2
265− name: compaREST binary – Windows
275+# name: compaREST binary – Windows
266− path: compaREST
276+# path: compaREST
268− - name: Zip Release Assets
278+# - name: Zip Release Assets
269− if: github.event_name == 'release'
279+# if: github.event_name == 'release'
270− shell: bash
280+# shell: bash
272− zip -r compaREST-Windows.zip compaREST
282+# zip -r compaREST-Windows.zip compaREST
274− - name: Upload compaREST binary – Windows to release
284+# - name: Upload compaREST binary – Windows to release
275− if: github.event_name == 'release'
285+# if: github.event_name == 'release'
276− uses: svenstaro/upload-release-action@2.2.1
286+# uses: svenstaro/upload-release-action@2.2.1
278− repo_token: ${{ secrets.GITHUB_TOKEN }}
288+# repo_token: ${{ secrets.GITHUB_TOKEN }}
279− file: compaREST-Windows.zip
289+# file: compaREST-Windows.zip
280− tag: ${{ github.ref }}
290+# tag: ${{ github.ref }}