Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
filepath
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
John Ericson
filepath
Commits
b446540c
Verified
Commit
b446540c
authored
3 years ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Fix windows CI
parent
2a8e94a7
Branches
fix-source-link
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/test.yaml
+15
-13
15 additions, 13 deletions
.github/workflows/test.yaml
with
15 additions
and
13 deletions
.github/workflows/test.yaml
+
15
−
13
View file @
b446540c
...
...
@@ -20,26 +20,23 @@ jobs:
steps
:
-
uses
:
actions/checkout@v2
-
name
:
create ~/.local/bin
run
:
mkdir -p "$HOME/.local/bin"
shell
:
bash
-
name
:
Add ~/.local/bin to PATH
run
:
echo "$HOME/.local/bin" >> $GITHUB_PATH
shell
:
bash
-
if
:
matrix.os == 'windows-latest'
name
:
Install ghcup on windows
run
:
Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $false,$true,$true,$false,$false,$false,$false,"C:\","", "C:\msys64"
-
if
:
matrix.os == 'windows-latest'
name
:
Install make on windows
run
:
C:\msys64\usr\bin\bash -lc "pacman -S --noconfirm make"
-
if
:
matrix.os == 'windows-latest'
name
:
Add ghcup to PATH
run
:
echo "/c/ghcup/bin" >> $GITHUB_PATH
shell
:
bash
run
:
echo "C:\ghcup\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
-
if
:
matrix.os != 'windows-latest'
name
:
Install ghcup on non-windows
run
:
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh
run
:
|
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
-
name
:
Install ghc/cabal
run
:
|
...
...
@@ -51,8 +48,13 @@ jobs:
run
:
cabal update
shell
:
bash
-
name
:
Install cpphs
run
:
cabal install --installdir="$HOME/.local/bin" --overwrite-policy=always --install-method=copy cpphs
-
if
:
matrix.os == 'windows-latest'
name
:
Install cpphs
run
:
cabal install --installdir="C:\ghcup\bin" --overwrite-policy=always --install-method=copy cpphs
-
if
:
matrix.os != 'windows-latest'
name
:
Install cpphs
run
:
cabal install --overwrite-policy=always --install-method=copy cpphs
shell
:
bash
-
name
:
Build
...
...
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