Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GHC musl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
GHC musl
Commits
bd7a3b13
Verified
Commit
bd7a3b13
authored
1 year ago
by
Olivier Benz
Browse files
Options
Downloads
Patches
Plain Diff
Update HLS to v2.2.0.0
parent
3e85d5b3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#23744
passed
1 year ago
Stage: build2
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-3
3 additions, 3 deletions
.gitlab-ci.yml
packages/hls/2.2.0.0.Dockerfile
+45
-0
45 additions, 0 deletions
packages/hls/2.2.0.0.Dockerfile
with
48 additions
and
3 deletions
.gitlab-ci.yml
+
3
−
3
View file @
bd7a3b13
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
GHC_VERSION_BUILD
:
"
9.6.2"
GHC_VERSION_BUILD
:
"
9.6.2"
CABAL_VERSION_BUILD
:
"
3.10.1.0"
CABAL_VERSION_BUILD
:
"
3.10.1.0"
STACK_VERSION
:
"
2.11.1"
STACK_VERSION
:
"
2.11.1"
HLS_VERSION
:
"
2.
1
.0.0"
HLS_VERSION
:
"
2.
2
.0.0"
BUILD_GHC
:
"
true"
BUILD_GHC
:
"
true"
BUILD_HLS
:
"
true"
BUILD_HLS
:
"
true"
...
@@ -27,10 +27,10 @@
...
@@ -27,10 +27,10 @@
--password-stdin $CI_REGISTRY
--password-stdin $CI_REGISTRY
-
>
-
>
export VERSION_MAJ_MIN_PAT=$GHC_VERSION_BUILD
export VERSION_MAJ_MIN_PAT=$GHC_VERSION_BUILD
export VERSION_MAJ_MIN=`echo $VERSION_MAJ_MIN_PAT |
export VERSION_MAJ_MIN=`echo $VERSION_MAJ_MIN_PAT |
sed -n "s|\([[:digit:]]\+\.[[:digit:]]\+\).*|\1|p"`
sed -n "s|\([[:digit:]]\+\.[[:digit:]]\+\).*|\1|p"`
export VERSION_MAJ=`echo $VERSION_MAJ_MIN_PAT |
export VERSION_MAJ=`echo $VERSION_MAJ_MIN_PAT |
sed -n "s|\([[:digit:]]\+\).*|\1|p"`
sed -n "s|\([[:digit:]]\+\).*|\1|p"`
...
...
This diff is collapsed.
Click to expand it.
packages/hls/2.2.0.0.Dockerfile
0 → 100644
+
45
−
0
View file @
bd7a3b13
ARG
GHC_VERSION
ARG
HLS_VERSION=2.2.0.0
FROM
glcr.b-data.ch/ghc/ghc-musl:${GHC_VERSION}
as
builder
ARG
HLS_VERSION
RUN
apk add
--no-cache
patchelf findutils
\
&&
cd
/tmp
\
&&
curl
-sSL
"https://github.com/haskell/haskell-language-server/archive/refs/tags/
$HLS_VERSION
.tar.gz"
\
-o
"haskell-language-server-
$HLS_VERSION
.tar.gz"
\
&&
tar
-xzf
"haskell-language-server-
$HLS_VERSION
.tar.gz"
\
&&
cd
"haskell-language-server-
$HLS_VERSION
"
\
&&
.
.github/scripts/env.sh
\
&&
.
.github/scripts/common.sh
\
&&
sed
-i
.bak
-e
'/DELETE MARKER FOR CI/,/END DELETE/d'
cabal.project
\
&&
GHCS
=
"
$GHC_VERSION
"
\
&&
export
GHCS
\
&&
ARTIFACT
=
"
$(
uname
-m
)
-linux-alpine"
\
&&
export
ARTIFACT
\
&&
cabal update
\
&&
emake hls-ghc
\
&&
emake bindist
\
&&
strip
"out/bindist/
$ARTIFACT
/haskell-language-server-
$HLS_VERSION
/lib/
$GHC_VERSION
"
/
*
.so
\
&&
emake bindist-tar
FROM
alpine:3.18
as
hls
ARG
HLS_VERSION
COPY
--from=builder /tmp/haskell-language-server-"$HLS_VERSION"/out/haskell-language-server-*-linux-alpine.tar.xz /tmp/
RUN
apk add
--no-cache
build-base
\
&&
cd
/tmp
\
&&
tar
-xJf
haskell-language-server-
"
$HLS_VERSION
"
-
*
-linux-alpine
.tar.xz
\
&&
cd
haskell-language-server-
"
$HLS_VERSION
"
\
&&
make
install
FROM
scratch
ARG
HLS_VERSION
ENV
HLS_VERSION=${HLS_VERSION}
COPY
--from=hls /usr/local /usr/local
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