Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghc-wasm-meta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package 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-wasm
ghc-wasm-meta
Commits
163de050
Commit
163de050
authored
2 months ago
by
Cheng Shao
Browse files
Options
Downloads
Patches
Plain Diff
ci: test ghcup on darwin
parent
b551b85c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#109322
passed
2 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+39
-15
39 additions, 15 deletions
.gitlab-ci.yml
with
39 additions
and
15 deletions
.gitlab-ci.yml
+
39
−
15
View file @
163de050
...
...
@@ -156,27 +156,14 @@ aarch64-darwin-nix:
NIX_FLAKE_OUTPUTS
:
.#all_9_12 .#all_9_10
NIX_BROWSERS
:
nixpkgs#google-chrome
.linux-ghcup
:
image
:
debian:12
.ghcup
:
rules
:
-
if
:
$UPSTREAM_GHC_FLAVOUR ==
null
before_script
:
-
|
apt update
apt full-upgrade -y
apt install -y \
build-essential \
curl \
chromium \
firefox-esr \
jq \
unzip \
zstd
script
:
-
|
curl -f -L --retry 5 https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh
. ~/.ghcup/env
ghcup install cabal latest --set
script
:
-
|
SKIP_GHC=1 ./setup.sh
. ~/.ghc-wasm/env
...
...
@@ -192,6 +179,22 @@ aarch64-darwin-nix:
ghcup set ghc wasm32-wasi-9.10
./tests/ghci.sh
.linux-ghcup
:
extends
:
.ghcup
image
:
debian:12
before_script
:
-
|
apt update
apt full-upgrade -y
apt install -y \
build-essential \
curl \
chromium \
firefox-esr \
jq \
unzip \
zstd
x86_64-linux-ghcup
:
extends
:
.linux-ghcup
tags
:
...
...
@@ -201,3 +204,24 @@ aarch64-linux-ghcup:
extends
:
.linux-ghcup
tags
:
-
aarch64-linux
aarch64-darwin-ghcup
:
extends
:
.ghcup
tags
:
-
aarch64-darwin
before_script
:
-
|
export HOME=$(mktemp -d)
trap 'rm -rf "$HOME"' EXIT
-
|
mkdir wrappers
echo '#!/bin/sh' >> wrappers/firefox
echo 'exec "/Applications/Firefox.app/Contents/MacOS/firefox" ${1+"$@"}' >> wrappers/firefox
chmod +x wrappers/firefox
echo '#!/bin/sh' >> wrappers/google-chrome-stable
echo 'exec "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" ${1+"$@"}' >> wrappers/google-chrome-stable
chmod +x wrappers/google-chrome-stable
export PATH=$PATH:$PWD/wrappers
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