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