@@ -123,59 +123,7 @@ jobs:
123 stack test --system-ghc
123 stack test --system-ghc
126− name: ubuntu-18.04 / ghcjs 8.4
126+ name: ubuntu-latest / ghcjs 8.6
127− runs-on: "ubuntu-18.04"
130− - uses: actions/checkout@v2
132− - name: "Setup PATH"
134− echo "PATH=$HOME/.cabal/bin:/opt/ghcjs/8.4/bin:$PATH" >> $GITHUB_ENV
136− - name: Install ghcjs and cabal
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
145− # Override cabal.project with the lightweight GHCJS one
146− cp cabal.ghcjs.project cabal.project
149− - name: Cabal update and freeze
154− - uses: actions/cache@v2.1.3
155− name: Cache ~/.cabal/store and dist-newstyle
160− key: ubuntu-18.04-ghcjs8.4-${{ hashFiles('cabal.project.freeze') }}
162− ubuntu-18.04-ghcjs8.4-
164− - name: Install cabal-plan and hspec-discover
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
171− cabal v2-build --ghcjs -w /opt/ghcjs/8.4/bin/ghcjs --enable-tests --enable-benchmarks all
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
179 runs-on: "ubuntu-latest"
127 runs-on: "ubuntu-latest"