Skip to content

Commit 1248275

Browse files
committed
Add environment for vars context
1 parent a396433 commit 1248275

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/release.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ env:
1313
jobs:
1414
build-linux:
1515
name: Build linux binaries
16+
## We need the environment here, to have access to the `vars` context.
17+
## Allows us to specify: `CABAL_CACHE_DISABLE=yes`.
18+
## The environments can be seen in https://github.com/haskell/haskell-language-server/settings/environments
19+
## assuming you have the proper permissions.
20+
environment: CI
1621
runs-on: ubuntu-latest
1722
env:
1823
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -206,6 +211,11 @@ jobs:
206211
207212
build-arm:
208213
name: Build ARM binary
214+
## We need the environment here, to have access to the `vars` context.
215+
## Allows us to specify: `CABAL_CACHE_DISABLE=yes`.
216+
## The environments can be seen in https://github.com/haskell/haskell-language-server/settings/environments
217+
## assuming you have the proper permissions.
218+
environment: CI
209219
runs-on: [self-hosted, Linux, ARM64]
210220
env:
211221
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -262,6 +272,11 @@ jobs:
262272
263273
build-mac-x86_64:
264274
name: Build binary (Mac x86_64)
275+
## We need the environment here, to have access to the `vars` context.
276+
## Allows us to specify: `CABAL_CACHE_DISABLE=yes`.
277+
## The environments can be seen in https://github.com/haskell/haskell-language-server/settings/environments
278+
## assuming you have the proper permissions.
279+
environment: CI
265280
runs-on: macOS-11
266281
env:
267282
MACOSX_DEPLOYMENT_TARGET: 10.13
@@ -301,6 +316,11 @@ jobs:
301316
302317
build-mac-aarch64:
303318
name: Build binary (Mac aarch64)
319+
## We need the environment here, to have access to the `vars` context.
320+
## Allows us to specify: `CABAL_CACHE_DISABLE=yes`.
321+
## The environments can be seen in https://github.com/haskell/haskell-language-server/settings/environments
322+
## assuming you have the proper permissions.
323+
environment: CI
304324
runs-on: [self-hosted, macOS, ARM64]
305325
env:
306326
MACOSX_DEPLOYMENT_TARGET: 10.13
@@ -352,6 +372,11 @@ jobs:
352372
353373
build-win:
354374
name: Build binary (Win)
375+
## We need the environment here, to have access to the `vars` context.
376+
## Allows us to specify: `CABAL_CACHE_DISABLE=yes`.
377+
## The environments can be seen in https://github.com/haskell/haskell-language-server/settings/environments
378+
## assuming you have the proper permissions.
379+
environment: CI
355380
runs-on: windows-latest
356381
env:
357382
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)