Bindist CI: add windows

This commit is contained in:
amesgen 2022-08-10 19:47:40 +02:00
parent ff79db284a
commit 0c0736526a
No known key found for this signature in database
GPG Key ID: 1A89EC203635A13D

View File

@ -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