Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
filepath
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luite Stegeman
filepath
Commits
742ab2b5
Unverified
Commit
742ab2b5
authored
5 months ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Use ghcup action
parent
65b0f8f3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/test.yaml
+16
-6
16 additions, 6 deletions
.github/workflows/test.yaml
with
16 additions
and
6 deletions
.github/workflows/test.yaml
+
16
−
6
View file @
742ab2b5
...
...
@@ -17,10 +17,10 @@ jobs:
ghc
:
[
'
8.6'
,
'
8.8'
,
'
8.10'
,
'
9.0'
,
'
9.2'
,
'
9.4'
,
'
9.6'
,
'
9.8'
]
cabal
:
[
'
3.8.1.0'
]
include
:
-
os
:
macos-1
2
-
os
:
macos-1
3
ghc
:
'
9.4'
cabal
:
'
3.8.1.0'
-
os
:
macos-1
2
-
os
:
macos-1
3
ghc
:
'
9.6'
cabal
:
'
3.8.1.0'
-
os
:
windows-latest
...
...
@@ -32,11 +32,13 @@ jobs:
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
haskell/ghcup-setup@v1
-
name
:
Install dependencies (Ubuntu)
if
:
runner.os == 'Linux'
run
:
|
sudo apt-get -y update
sudo apt-get -y install libtinfo
5 libtinfo6 libncurses5
libncurses6
sudo apt-get -y install libtinfo
6
libncurses6
-
name
:
Install ghc/cabal
run
:
|
...
...
@@ -134,6 +136,8 @@ jobs:
-
name
:
Checkout code
uses
:
actions/checkout@v4
-
uses
:
haskell/ghcup-setup@v1
-
name
:
Run build
run
:
|
bash .github/scripts/brew.sh git coreutils llvm@13 autoconf automake
...
...
@@ -144,7 +148,9 @@ jobs:
export AR="$HOME/.brew/opt/llvm@13/bin/llvm-ar"
export RANLIB="$HOME/.brew/opt/llvm@13/bin/llvm-ranlib"
. .github/scripts/env.sh
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 BOOTSTRAP_HASKELL_GHC_VERSION=${{ matrix.ghc }} BOOTSTRAP_HASKELL_ADJUST_BASHRC=yes sh
ghcup install ghc --set ${{ matrix.ghc }}
ghcup install cabal --set latest
cabal update
cabal test
cabal bench
env
:
...
...
@@ -164,10 +170,14 @@ jobs:
-
name
:
Checkout code
uses
:
actions/checkout@v4
-
uses
:
haskell/ghcup-setup@v1
-
name
:
Run build
run
:
|
pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14
sudo
pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14
. .github/scripts/env.sh
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 BOOTSTRAP_HASKELL_GHC_VERSION=${{ matrix.ghc }} BOOTSTRAP_HASKELL_ADJUST_BASHRC=yes sh
ghcup install ghc --set ${{ matrix.ghc }}
ghcup install cabal --set recommended
cabal update
cabal test
cabal bench
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment