Bindist CI: add windows
This commit is contained in:
parent
ff79db284a
commit
0c0736526a
11
.github/workflows/bindists.yaml
vendored
11
.github/workflows/bindists.yaml
vendored
@ -1,4 +1,7 @@
|
|||||||
name: Bindist installation
|
name: Bindist installation
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
@ -47,6 +50,7 @@ jobs:
|
|||||||
image: ${{ matrix.image }}
|
image: ${{ matrix.image }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
${{ matrix.installCmd }} curl bash git ${{ matrix.toolRequirements }}
|
${{ matrix.installCmd }} curl bash git ${{ matrix.toolRequirements }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -54,7 +58,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
|
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
|
||||||
echo ~/.ghcup/bin >> $GITHUB_PATH
|
echo ~/.ghcup/bin >> $GITHUB_PATH
|
||||||
~/.ghcup/bin/ghcup --version
|
|
||||||
env:
|
env:
|
||||||
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
|
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
|
||||||
BOOTSTRAP_HASKELL_MINIMAL: 1
|
BOOTSTRAP_HASKELL_MINIMAL: 1
|
||||||
@ -65,13 +68,12 @@ jobs:
|
|||||||
ghcup -v --url-source=file:${{ github.event.inputs.metadataFile }} \
|
ghcup -v --url-source=file:${{ github.event.inputs.metadataFile }} \
|
||||||
install ghc --set ${{ github.event.inputs.ghcVersion }}
|
install ghc --set ${{ github.event.inputs.ghcVersion }}
|
||||||
- name: GHC sanity check
|
- name: GHC sanity check
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
ghc --version
|
ghc --version
|
||||||
echo 'main = print $ 1 + 1' > main.hs
|
echo 'main = print $ 1 + 1' > main.hs
|
||||||
ghc main.hs
|
ghc main.hs
|
||||||
[[ $(./main) -eq 2 ]]
|
[[ $(./main) -eq 2 ]]
|
||||||
bindist-install-macos:
|
bindist-install-non-linux:
|
||||||
name: ${{ matrix.os }}
|
name: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -79,6 +81,7 @@ jobs:
|
|||||||
os:
|
os:
|
||||||
- macos-11
|
- macos-11
|
||||||
- macos-12
|
- macos-12
|
||||||
|
- windows-latest
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -86,7 +89,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
|
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
|
||||||
echo ~/.ghcup/bin >> $GITHUB_PATH
|
echo ~/.ghcup/bin >> $GITHUB_PATH
|
||||||
~/.ghcup/bin/ghcup --version
|
|
||||||
env:
|
env:
|
||||||
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
|
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
|
||||||
BOOTSTRAP_HASKELL_MINIMAL: 1
|
BOOTSTRAP_HASKELL_MINIMAL: 1
|
||||||
@ -97,7 +99,6 @@ jobs:
|
|||||||
ghcup -v --url-source=file:${{ github.event.inputs.metadataFile }} \
|
ghcup -v --url-source=file:${{ github.event.inputs.metadataFile }} \
|
||||||
install ghc --set ${{ github.event.inputs.ghcVersion }}
|
install ghc --set ${{ github.event.inputs.ghcVersion }}
|
||||||
- name: GHC sanity check
|
- name: GHC sanity check
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
ghc --version
|
ghc --version
|
||||||
echo 'main = print $ 1 + 1' > main.hs
|
echo 'main = print $ 1 + 1' > main.hs
|
||||||
|
Loading…
Reference in New Issue
Block a user