Skip to content

Commit 3c6d383

Browse files
authored
Deployment fixes (#233)
* Deployment fixes - Fix deploys by using an absolute directory for XDG_CACHE_HOME - Pin CI to Ubuntu 20.04, and add note that this must be kept in sync with the server
1 parent ac87151 commit 3c6d383

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ env:
1515
jobs:
1616
build_server:
1717
name: Build server
18-
runs-on: ubuntu-latest
18+
# Note that this must be kept in sync with the version of Ubuntu which the
19+
# Try PureScript server is running, otherwise the server binary may fail to
20+
# run.
21+
runs-on: ubuntu-20.04
1922
steps:
2023
- uses: actions/checkout@v2
21-
24+
2225
- uses: haskell/actions/setup@v1
2326
with:
2427
enable-stack: true
@@ -59,7 +62,10 @@ jobs:
5962

6063
build_client:
6164
name: Build client
62-
runs-on: ubuntu-latest
65+
# Note that this must be kept in sync with the version of Ubuntu which the
66+
# Try PureScript server is running, otherwise the server binary may fail to
67+
# run.
68+
runs-on: ubuntu-20.04
6369
steps:
6470
- uses: actions/checkout@v2
6571
- uses: actions/setup-node@v2
@@ -90,7 +96,10 @@ jobs:
9096

9197
release:
9298
name: Release
93-
runs-on: ubuntu-latest
99+
# Note that this must be kept in sync with the version of Ubuntu which the
100+
# Try PureScript server is running, otherwise the server binary may fail to
101+
# run.
102+
runs-on: ubuntu-20.04
94103
if: github.event_name == 'release'
95104
env:
96105
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy/start

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
set -ex
44
set -o noglob
5-
export XDG_CACHE_HOME=.spago-cache
5+
export XDG_CACHE_HOME="$PWD/.spago-cache"
66
spago install
77
exec trypurescript +RTS -N2 -A128m -M3G -RTS 8081 $(spago sources)

0 commit comments

Comments
 (0)