Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghcup-hs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Haskell
ghcup-hs
Commits
019365fd
Verified
Commit
019365fd
authored
4 years ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Debug CI
parent
7189998f
No related branches found
Branches containing commit
No related tags found
1 merge request
!100
Debug CI
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+9
-9
9 additions, 9 deletions
.gitlab-ci.yml
.gitlab/before_script/darwin/install_deps.sh
+2
-0
2 additions, 0 deletions
.gitlab/before_script/darwin/install_deps.sh
.gitlab/shell.nix
+2
-3
2 additions, 3 deletions
.gitlab/shell.nix
with
13 additions
and
12 deletions
.gitlab-ci.yml
+
9
−
9
View file @
019365fd
...
...
@@ -148,22 +148,21 @@ variables:
-
.root_cleanup
script
:
|
set -Eeuo pipefail
echo 1
function runInNixShell() {
time nix-shell .gitlab/shell.nix \
time nix-shell
$CI_PROJECT_DIR/
.gitlab/shell.nix \
-I nixpkgs=https://github.com/angerman/nixpkgs/archive/75f7281738b.tar.gz \
--argstr system "aarch64-darwin" \
--pure \
--keep GHC_VERSION --keep CABAL_INSTALL_VERSION --keep BUILD_FLAVOUR \
--keep BIN_DIST_PREP_TAR_COMP --keep CPUS --keep PROJECT_DIR \
--keep CI_PROJECT_DIR --keep MAKE_ARGS --keep HADRIAN_ARGS --keep CABAL_CACHE \
--keep LANG --keep CONFIGURE_ARGS --keep TEST_ENV --keep BIN_DIST_NAME \
--keep MACOSX_DEPLOYMENT_TARGET --keep ac_cv_func_clock_gettime --keep HACKAGE_INDEX_STATE \
--keep CABAL_DIR --keep ARCH --keep OS --keep CABAL_VERSION --keep GHC_VERSION \
--keep JSON_VERSION --ARTIFACT \
--run "$1" 2>&1
}
echo 2
runInNixShell ./.gitlab/before_script/darwin/install_deps.sh 2>&1
echo 3
runInNixShell ./.gitlab/script/ghcup_version.sh 2>&1
before_script
:
-
|
echo before
.test_ghcup_version:freebsd
:
extends
:
...
...
@@ -171,7 +170,8 @@ variables:
-
.freebsd
-
.root_cleanup
before_script
:
-
./.gitlab/before_script/freebsd/install_deps.sh
-
|
echo before
.test_ghcup_version:windows
:
extends
:
...
...
This diff is collapsed.
Click to expand it.
.gitlab/before_script/darwin/install_deps.sh
+
2
−
0
View file @
019365fd
#!/bin/sh
echo
install_deps
set
-eux
.
"
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
-P
)
/../../ghcup_env"
...
...
This diff is collapsed.
Click to expand it.
.gitlab/shell.nix
+
2
−
3
View file @
019365fd
...
...
@@ -44,9 +44,8 @@
# unconditionally add the MacOSX.sdk and TargetConditional.h
export NIX_CFLAGS_COMPILE+=" -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include"
# Use an architecture specific home, so cabal for different architectures don't confuse each other.
export HOME="$HOME/$(uname -m)-home"
mkdir -p $HOME
echo lol
''
;
nativeBuildInputs
=
(
with
pkgs
;
[
...
...
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