Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
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
Mario
Cabal
Commits
6c95f3fe
Unverified
Commit
6c95f3fe
authored
2 years ago
by
mergify[bot]
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #8837 from haskell/mergify/bp/3.10/pr-8836
Stabilize use of brew in GitLab CI (backport #8836)
parents
3699fa54
4e7f6738
No related branches found
Branches containing commit
Tags
3.10.1+0
Cabal-v3.10.1.0
cabal-install-v3.10.1.0
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
.gitlab/brew.sh
+11
-3
11 additions, 3 deletions
.gitlab/brew.sh
with
16 additions
and
3 deletions
.gitlab-ci.yml
+
5
−
0
View file @
6c95f3fe
...
@@ -94,10 +94,15 @@ build-aarch64-darwin:
...
@@ -94,10 +94,15 @@ build-aarch64-darwin:
TARBALL_ARCHIVE_SUFFIX
:
aarch64-darwin
TARBALL_ARCHIVE_SUFFIX
:
aarch64-darwin
TARBALL_EXT
:
tar.xz
TARBALL_EXT
:
tar.xz
ADD_CABAL_ARGS
:
"
"
ADD_CABAL_ARGS
:
"
"
# Update periodically.
BREW_VERSION
:
4.0.5
artifacts
:
artifacts
:
expire_in
:
2 week
expire_in
:
2 week
paths
:
paths
:
-
out/*
-
out/*
cache
:
paths
:
-
.brew
build-x86_64-windows
:
build-x86_64-windows
:
extends
:
.build
extends
:
.build
...
...
This diff is collapsed.
Click to expand it.
.gitlab/brew.sh
+
11
−
3
View file @
6c95f3fe
#!/usr/bin/env bash
#!/usr/bin/env bash
set
-Eeu
x
o
pipefail
set
-Eeuo
pipefail
# Install brew locally in the project dir. Packages will also be installed here.
# Install brew locally in the project dir. Packages will also be installed here.
[
-e
"
$CI_PROJECT_DIR
/.brew"
]
||
git clone
--depth
=
1 https://github.com/Homebrew/brew
$CI_PROJECT_DIR
/.brew
# FIXME: Use brew in supported way. See
export
PATH
=
"
$CI_PROJECT_DIR
/.brew/bin:
$CI_PROJECT_DIR
/.brew/sbin:
$PATH
"
# https://docs.brew.sh/Installation#untar-anywhere-unsupported
brew_dir
=
"
${
CI_PROJECT_DIR
}
/.brew"
if
[
!
-e
"
${
brew_dir
}
"
]
;
then
mkdir
-p
"
${
brew_dir
}
"
curl
-L
"https://github.com/Homebrew/brew/archive/refs/tags/
${
BREW_VERSION
}
.tar.gz"
|
tar
xz
--strip
1
-C
"
${
brew_dir
}
"
fi
export
PATH
=
"
${
brew_dir
}
/bin:
${
brew_dir
}
/sbin:
$PATH
"
# make sure to not pollute the machine with temp files etc
# make sure to not pollute the machine with temp files etc
mkdir
-p
$CI_PROJECT_DIR
/.brew_cache
mkdir
-p
$CI_PROJECT_DIR
/.brew_cache
...
...
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