Skip to content

Commit e9ae1ee

Browse files
author
Gaël Deest
committed
Remove the old Github action
1 parent 910a3ae commit e9ae1ee

File tree

1 file changed

+1
-53
lines changed

1 file changed

+1
-53
lines changed

.github/workflows/master.yml

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -123,59 +123,7 @@ jobs:
123123
stack test --system-ghc
124124
125125
ghcjs:
126-
name: ubuntu-18.04 / ghcjs 8.4
127-
runs-on: "ubuntu-18.04"
128-
129-
steps:
130-
- uses: actions/checkout@v2
131-
132-
- name: "Setup PATH"
133-
run: |
134-
echo "PATH=$HOME/.cabal/bin:/opt/ghcjs/8.4/bin:$PATH" >> $GITHUB_ENV
135-
136-
- name: Install ghcjs and cabal
137-
run: |
138-
# Default GitHub image dropped ppa:hvr/ghc, so we add it ourselves
139-
sudo add-apt-repository ppa:hvr/ghc
140-
sudo add-apt-repository ppa:hvr/ghcjs
141-
sudo apt-get update -y
142-
sudo apt-get install ghcjs-8.4
143-
sudo apt-get install cabal-install
144-
145-
# Override cabal.project with the lightweight GHCJS one
146-
cp cabal.ghcjs.project cabal.project
147-
cat cabal.project
148-
149-
- name: Cabal update and freeze
150-
run: |
151-
cabal v2-update
152-
cabal v2-freeze
153-
154-
- uses: actions/[email protected]
155-
name: Cache ~/.cabal/store and dist-newstyle
156-
with:
157-
path: |
158-
~/.cabal/store
159-
dist-newstyle
160-
key: ubuntu-18.04-ghcjs8.4-${{ hashFiles('cabal.project.freeze') }}
161-
restore-keys: |
162-
ubuntu-18.04-ghcjs8.4-
163-
164-
- name: Install cabal-plan and hspec-discover
165-
run: |
166-
cabal v2-install -w /opt/ghc/8.4.4/bin/ghc --ignore-project cabal-plan --constraint='cabal-plan ^>=0.6.0.0' --constraint='cabal-plan +exe'
167-
cabal v2-install -w /opt/ghc/8.4.4/bin/ghc --ignore-project hspec-discover
168-
169-
- name: Build
170-
run: |
171-
cabal v2-build --ghcjs -w /opt/ghcjs/8.4/bin/ghcjs --enable-tests --enable-benchmarks all
172-
173-
- name: Run tests
174-
run: |
175-
cabal-plan list-bins '*:test:*' | while read -r line; do testpkg=$(echo "$line" | perl -pe 's/:.*//'); testexe=$(echo "$line" | awk '{ print $2 }'); echo "testing $textexe in package $textpkg"; (cd "$(pkgdir $testpkg)" && nodejs "$testexe".jsexe/all.js); done
176-
177-
ghcjs-test:
178-
name: ghcjs-test
126+
name: ubuntu-latest / ghcjs 8.6
179127
runs-on: "ubuntu-latest"
180128

181129
steps:

0 commit comments

Comments
 (0)