Skip to content

Some more

Some more #49

Workflow file for this run

name: Test ghcup action
on:
push:
workflow_dispatch:
jobs:
simple:
strategy:
matrix:
runs-on:
- ubuntu-latest
- macos-latest
- windows-latest
- [self-hosted, FreeBSD, X64]
version:
- latest
- '0.1.30.0'
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
version: ${{ matrix.version }}
- run: ghcup config
- run: ghcup debug-info
- run: ghcup tool-requirements
- run: ghcup list
- run: ghcup install ghc latest --set
- run: ghcup whereis ghc latest
- run: which ghc
- run: ghc --version
- run: ghcup install cabal latest --set
- run: ghcup whereis cabal latest
- run: which cabal
- run: cabal --version
- run: ghcup install stack latest --set
- run: ghcup whereis stack latest
- run: which stack
- run: stack --version
- run: ghcup install hls latest --set
- run: ghcup whereis hls latest
- run: which haskell-language-server-wrapper
- run: haskell-language-server-wrapper --version
- if: runner.os == 'Windows'
run: ghcup run -m sh -- -c 'pacman --version'
vanilla-channel:
strategy:
matrix:
runs-on:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
release-channels: |
https://raw.githubusercontent.com/haskell/ghcup-metadata/refs/heads/master/ghcup-vanilla-0.0.8.yaml
https://raw.githubusercontent.com/haskell/ghcup-metadata/refs/heads/master/ghcup-prereleases-0.0.8.yaml
- run: ghcup config
- run: ghcup debug-info
- run: ghcup tool-requirements
- run: ghcup list
- run: ghcup install ghc latest --set
- run: ghcup whereis ghc latest
- run: which ghc
- run: ghc --version
- run: ghcup install ghc latest-prerelease --set
- run: ghcup whereis ghc latest-prerelease
- run: which ghc
- run: ghc --version
- if: runner.os == 'Windows'
run: ghcup run -m sh -- -c 'pacman --version'