Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Always try to install cabal
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Dec 21, 2020
1 parent 66349f3 commit 208fb99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ jobs:
expect-fail: true
steps:
- uses: actions/checkout@v2
- name: Insecure curl
if: ${{ matrix.os == 'macOS-latest' && matrix.cabal == '3.4.0.0-rc4' }}
shell: bash
run: echo insecure >> $HOME/.curlrc
- uses: ./setup
continue-on-error: ${{ matrix.expect-fail }}
with:
Expand Down
1 change: 1 addition & 0 deletions setup/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions setup/src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ async function isInstalled(
.catch(() => undefined);

if (installedPath) {
await exec(await ghcupBin(os), ['install', tool, version]);
await exec(await ghcupBin(os), ['set', tool, version]);
return success(tool, version, installedPath, os);
}
Expand Down

0 comments on commit 208fb99

Please sign in to comment.