Skip to content
Snippets Groups Projects
Verified Commit 019365fd authored by Julian Ospald's avatar Julian Ospald :tea:
Browse files

Debug CI

parent 7189998f
No related branches found
No related tags found
1 merge request!100Debug CI
......@@ -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:
......
#!/bin/sh
echo install_deps
set -eux
. "$( cd "$(dirname "$0")" ; pwd -P )/../../ghcup_env"
......
......@@ -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; [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment