Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Haskell Language Server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Julian Ospald
Haskell Language Server
Commits
99f8cb66
Unverified
Commit
99f8cb66
authored
3 years ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Fix taring up
parent
44522eb6
No related branches found
No related tags found
No related merge requests found
Pipeline
#44715
failed
3 years ago
Stage: build
Stage: tar
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+105
-12
105 additions, 12 deletions
.gitlab-ci.yml
.gitlab/ci.sh
+0
-14
0 additions, 14 deletions
.gitlab/ci.sh
.gitlab/tar.sh
+24
-0
24 additions, 0 deletions
.gitlab/tar.sh
with
129 additions
and
26 deletions
.gitlab-ci.yml
+
105
−
12
View file @
99f8cb66
stages
:
-
build
-
tar
# Used for ci setup in the gitlab mirror of the project:
# Used for ci setup in the gitlab mirror of the project:
# https://gitlab.haskell.org/haskell/haskell-language-server/-/pipelines
# https://gitlab.haskell.org/haskell/haskell-language-server/-/pipelines
variables
:
variables
:
...
@@ -33,6 +37,7 @@ workflow:
...
@@ -33,6 +37,7 @@ workflow:
-
when
:
never
-
when
:
never
.build
:
.build
:
stage
:
build
script
:
script
:
-
bash .gitlab/ci.sh
-
bash .gitlab/ci.sh
artifacts
:
artifacts
:
...
@@ -46,10 +51,20 @@ build-aarch64-linux-deb10:
...
@@ -46,10 +51,20 @@ build-aarch64-linux-deb10:
-
aarch64-linux
-
aarch64-linux
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/aarch64-linux-deb10:$DOCKER_REV"
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/aarch64-linux-deb10:$DOCKER_REV"
parallel
:
*arm_matrix
parallel
:
*arm_matrix
variables
:
ADD_CABAL_ARGS
:
"
"
tar-aarch64-linux-deb10
:
stage
:
tar
needs
:
[
"
build-aarch64-linux-deb10"
]
tags
:
-
aarch64-linux
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/aarch64-linux-deb10:$DOCKER_REV"
script
:
-
./.gitlab/tar.sh
variables
:
variables
:
TARBALL_ARCHIVE_SUFFIX
:
aarch64-linux-deb10
TARBALL_ARCHIVE_SUFFIX
:
aarch64-linux-deb10
TARBALL_EXT
:
tar.xz
TARBALL_EXT
:
tar.xz
ADD_CABAL_ARGS
:
"
"
build-armv7-linux-deb10
:
build-armv7-linux-deb10
:
extends
:
.build
extends
:
.build
...
@@ -57,10 +72,20 @@ build-armv7-linux-deb10:
...
@@ -57,10 +72,20 @@ build-armv7-linux-deb10:
-
armv7-linux
-
armv7-linux
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/armv7-linux-deb10:$DOCKER_REV"
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/armv7-linux-deb10:$DOCKER_REV"
parallel
:
*arm_matrix
parallel
:
*arm_matrix
variables
:
ADD_CABAL_ARGS
:
"
"
tar-armv7-linux-deb10
:
stage
:
tar
needs
:
[
"
build-armv7-linux-deb10"
]
tags
:
-
armv7-linux
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/armv7-linux-deb10:$DOCKER_REV"
script
:
-
./.gitlab/tar.sh
variables
:
variables
:
TARBALL_ARCHIVE_SUFFIX
:
armv7-linux-deb10
TARBALL_ARCHIVE_SUFFIX
:
armv7-linux-deb10
TARBALL_EXT
:
tar.xz
TARBALL_EXT
:
tar.xz
ADD_CABAL_ARGS
:
"
"
build-x86_64-linux
:
build-x86_64-linux
:
extends
:
.build
extends
:
.build
...
@@ -69,10 +94,20 @@ build-x86_64-linux:
...
@@ -69,10 +94,20 @@ build-x86_64-linux:
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"
parallel
:
*default_matrix
parallel
:
*default_matrix
variables
:
variables
:
TARBALL_ARCHIVE_SUFFIX
:
armv7-linux-deb10
TARBALL_EXT
:
tar.xz
ADD_CABAL_ARGS
:
"
--enable-split-sections"
ADD_CABAL_ARGS
:
"
--enable-split-sections"
tar-x86_64-linux
:
stage
:
tar
needs
:
[
"
build-x86_64-linux"
]
tags
:
-
x86_64-linux
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"
script
:
-
./.gitlab/tar.sh
variables
:
TARBALL_ARCHIVE_SUFFIX
:
x86_64-linux
TARBALL_EXT
:
tar.xz
build-x86_64-linux-alpine
:
build-x86_64-linux-alpine
:
extends
:
.build
extends
:
.build
tags
:
tags
:
...
@@ -81,20 +116,39 @@ build-x86_64-linux-alpine:
...
@@ -81,20 +116,39 @@ build-x86_64-linux-alpine:
before_script
:
before_script
:
-
sudo apk add --no-cache zlib zlib-dev zlib-static bzip2 bzip2-dev bzip2-static gmp gmp-dev xz xz-dev ncurses-static
-
sudo apk add --no-cache zlib zlib-dev zlib-static bzip2 bzip2-dev bzip2-static gmp gmp-dev xz xz-dev ncurses-static
parallel
:
*default_matrix
parallel
:
*default_matrix
variables
:
ADD_CABAL_ARGS
:
"
--enable-split-sections
--enable-executable-static"
tar-x86_64-linux-alpine
:
stage
:
tar
needs
:
[
"
build-x86_64-linux-alpine"
]
tags
:
-
x86_64-linux
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-alpine3_12:$DOCKER_REV"
script
:
-
./.gitlab/tar.sh
variables
:
variables
:
TARBALL_ARCHIVE_SUFFIX
:
x86_64-linux-alpine
TARBALL_ARCHIVE_SUFFIX
:
x86_64-linux-alpine
TARBALL_EXT
:
tar.xz
TARBALL_EXT
:
tar.xz
ADD_CABAL_ARGS
:
"
--enable-split-sections
--enable-executable-static"
build-x86_64-freebsd12
:
build-x86_64-freebsd12
:
extends
:
.build
extends
:
.build
tags
:
tags
:
-
x86_64-freebsd12
-
x86_64-freebsd12
parallel
:
*default_matrix
parallel
:
*default_matrix
variables
:
ADD_CABAL_ARGS
:
"
--enable-split-sections"
tar-x86_64-freebsd12
:
stage
:
tar
needs
:
[
"
build-x86_64-freebsd12"
]
tags
:
-
x86_64-freebsd12
script
:
-
./.gitlab/tar.sh
variables
:
variables
:
TARBALL_ARCHIVE_SUFFIX
:
x86_64-freebsd12
TARBALL_ARCHIVE_SUFFIX
:
x86_64-freebsd12
TARBALL_EXT
:
tar.xz
TARBALL_EXT
:
tar.xz
ADD_CABAL_ARGS
:
"
--enable-split-sections"
build-x86_64-freebsd13
:
build-x86_64-freebsd13
:
extends
:
.build
extends
:
.build
...
@@ -105,22 +159,41 @@ build-x86_64-freebsd13:
...
@@ -105,22 +159,41 @@ build-x86_64-freebsd13:
-
sudo pkg update
-
sudo pkg update
-
sudo pkg install --yes compat12x-amd64
-
sudo pkg install --yes compat12x-amd64
-
sudo ln -s libncurses.so.6 /usr/local/lib/libncurses.so.6.2
-
sudo ln -s libncurses.so.6 /usr/local/lib/libncurses.so.6.2
variables
:
ADD_CABAL_ARGS
:
"
--enable-split-sections"
tar-x86_64-freebsd13
:
stage
:
tar
needs
:
[
"
build-x86_64-freebsd13"
]
tags
:
-
x86_64-freebsd13
script
:
-
./.gitlab/tar.sh
variables
:
variables
:
TARBALL_ARCHIVE_SUFFIX
:
x86_64-freebsd13
TARBALL_ARCHIVE_SUFFIX
:
x86_64-freebsd13
TARBALL_EXT
:
tar.xz
TARBALL_EXT
:
tar.xz
ADD_CABAL_ARGS
:
"
--enable-split-sections"
build-x86_64-darwin
:
build-x86_64-darwin
:
extends
:
.build
extends
:
.build
tags
:
tags
:
-
x86_64-darwin
-
x86_64-darwin
parallel
:
*default_matrix
parallel
:
*default_matrix
variables
:
ADD_CABAL_ARGS
:
"
"
tar-x86_64-darwin
:
stage
:
tar
needs
:
[
"
build-x86_64-darwin"
]
tags
:
-
x86_64-darwin
script
:
-
./.gitlab/tar.sh
variables
:
variables
:
TARBALL_ARCHIVE_SUFFIX
:
x86_64-darwin
TARBALL_ARCHIVE_SUFFIX
:
x86_64-darwin
TARBALL_EXT
:
tar.xz
TARBALL_EXT
:
tar.xz
ADD_CABAL_ARGS
:
"
"
build-aarch64-darwin
:
build-aarch64-darwin
:
stage
:
build
tags
:
tags
:
-
aarch64-darwin-m1
-
aarch64-darwin-m1
before_script
:
before_script
:
...
@@ -155,8 +228,6 @@ build-aarch64-darwin:
...
@@ -155,8 +228,6 @@ build-aarch64-darwin:
-
rm -Rf /private/tmp/.brew_tmp
-
rm -Rf /private/tmp/.brew_tmp
variables
:
variables
:
MACOSX_DEPLOYMENT_TARGET
:
"
10.7"
MACOSX_DEPLOYMENT_TARGET
:
"
10.7"
TARBALL_ARCHIVE_SUFFIX
:
aarch64-darwin
TARBALL_EXT
:
tar.xz
ADD_CABAL_ARGS
:
"
"
ADD_CABAL_ARGS
:
"
"
parallel
:
*m1_matrix
parallel
:
*m1_matrix
artifacts
:
artifacts
:
...
@@ -164,6 +235,17 @@ build-aarch64-darwin:
...
@@ -164,6 +235,17 @@ build-aarch64-darwin:
paths
:
paths
:
-
out
-
out
tar-aarch64-darwin
:
stage
:
tar
needs
:
[
"
build-aarch64-darwin"
]
tags
:
-
aarch64-darwin-m1
script
:
-
arch -arm64 /bin/bash ./.gitlab/tar.sh
variables
:
TARBALL_ARCHIVE_SUFFIX
:
aarch64-darwin
TARBALL_EXT
:
tar.xz
build-x86_64-windows
:
build-x86_64-windows
:
extends
:
.build
extends
:
.build
tags
:
tags
:
...
@@ -172,8 +254,19 @@ build-x86_64-windows:
...
@@ -172,8 +254,19 @@ build-x86_64-windows:
script
:
script
:
-
bash '-lc' 'pacman --noconfirm -S zip'
-
bash '-lc' 'pacman --noconfirm -S zip'
-
$env:CHERE_INVOKING = "yes"
-
$env:CHERE_INVOKING = "yes"
-
bash '-lc' "TARBALL_ARCHIVE_SUFFIX=$env:TARBALL_ARCHIVE_SUFFIX TARBALL_EXT=$env:TARBALL_EXT ADD_CABAL_ARGS=$env:ADD_CABAL_ARGS GHC_VERSION=$env:GHC_VERSION CABAL_INSTALL_VERSION=$CABAL_INSTALL_VERSION .gitlab/ci.sh"
-
bash '-lc' "ADD_CABAL_ARGS=$env:ADD_CABAL_ARGS GHC_VERSION=$env:GHC_VERSION CABAL_INSTALL_VERSION=$CABAL_INSTALL_VERSION .gitlab/ci.sh"
variables
:
ADD_CABAL_ARGS
:
"
"
tar-x86_64-windows
:
stage
:
tar
needs
:
[
"
build-x86_64-windows"
]
tags
:
-
new-x86_64-windows
script
:
-
$env:CHERE_INVOKING = "yes"
-
bash '-lc' "TARBALL_ARCHIVE_SUFFIX=$env:TARBALL_ARCHIVE_SUFFIX TARBALL_EXT=$env:TARBALL_EXT .gitlab/tar.sh"
variables
:
variables
:
TARBALL_ARCHIVE_SUFFIX
:
x86_64-windows
TARBALL_ARCHIVE_SUFFIX
:
x86_64-windows
TARBALL_EXT
:
zip
TARBALL_EXT
:
zip
ADD_CABAL_ARGS
:
"
"
This diff is collapsed.
Click to expand it.
.gitlab/ci.sh
+
0
−
14
View file @
99f8cb66
...
@@ -78,17 +78,3 @@ cp dist-newstyle/cache/plan.json "$CI_PROJECT_DIR/out/plan.json"
...
@@ -78,17 +78,3 @@ cp dist-newstyle/cache/plan.json "$CI_PROJECT_DIR/out/plan.json"
cd
"
$CI_PROJECT_DIR
/out/"
cd
"
$CI_PROJECT_DIR
/out/"
# create tarball/zip
TARBALL_PREFIX
=
"haskell-language-server-
$(
"
$CI_PROJECT_DIR
/out/haskell-language-server-
${
GHC_VERSION
}
"
--numeric-version
)
"
case
"
${
TARBALL_EXT
}
"
in
zip
)
zip
"
${
TARBALL_PREFIX
}
-
${
TARBALL_ARCHIVE_SUFFIX
}
.
${
TARBALL_EXT
}
"
haskell-language-server-
${
GHC_VERSION
}
haskell-language-server-wrapper plan.json
;;
tar.xz
)
tar
caf
"
${
TARBALL_PREFIX
}
-
${
TARBALL_ARCHIVE_SUFFIX
}
.
${
TARBALL_EXT
}
"
haskell-language-server-
${
GHC_VERSION
}
haskell-language-server-wrapper plan.json
;;
*
)
fail
"Unknown TARBALL_EXT:
${
TARBALL_EXT
}
"
;;
esac
This diff is collapsed.
Click to expand it.
.gitlab/tar.sh
0 → 100755
+
24
−
0
View file @
99f8cb66
#!/usr/bin/env bash
set
-Eeuxo
pipefail
source
"
$CI_PROJECT_DIR
/.gitlab/common.sh"
ls
-la
out/
# create tarball/zip
TARBALL_PREFIX
=
"haskell-language-server-
$(
"
$CI_PROJECT_DIR
/out/haskell-language-server-wrapper"
--numeric-version
)
"
case
"
${
TARBALL_EXT
}
"
in
zip
)
zip
"
${
TARBALL_PREFIX
}
-
${
TARBALL_ARCHIVE_SUFFIX
}
.
${
TARBALL_EXT
}
"
haskell-language-server-
*
;;
tar.xz
)
tar
caf
"
${
TARBALL_PREFIX
}
-
${
TARBALL_ARCHIVE_SUFFIX
}
.
${
TARBALL_EXT
}
"
haskell-language-server-
*
;;
*
)
fail
"Unknown TARBALL_EXT:
${
TARBALL_EXT
}
"
;;
esac
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