From 059eb46d8b1787ec2e1ad31ae2b7ef3a464a42ee Mon Sep 17 00:00:00 2001 From: Andrea Bedini Date: Sat, 14 Dec 2024 12:57:41 +0800 Subject: [PATCH] ci: add more testing --- .github/workflows/test-ghcup.yaml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-ghcup.yaml b/.github/workflows/test-ghcup.yaml index d610b52..3558739 100644 --- a/.github/workflows/test-ghcup.yaml +++ b/.github/workflows/test-ghcup.yaml @@ -18,7 +18,6 @@ jobs: runs-on: ${{ matrix.runs-on }} steps: - uses: actions/checkout@v4 - - uses: ./ghcup with: version: ${{ matrix.version }} @@ -32,7 +31,27 @@ jobs: - run: ghcup whereis ghc latest - run: which ghc - run: ghc --version - + + - if: ${{ matrix.runs-on == 'windows' }} + run: ghcup run bash -- -c 'echo yes' + + all-tools: + strategy: + matrix: + runs-on: + - ubuntu-latest + - macos-latest + - windows-latest + runs-on: ${{ matrix.runs-on }} + steps: + - uses: actions/checkout@v4 + - uses: ./ghcup + + - run: ghcup config + - run: ghcup debug-info + - run: ghcup tool-requirements + - run: ghcup list + - run: ghcup install cabal latest --set - run: ghcup whereis cabal latest - run: which cabal @@ -69,8 +88,3 @@ jobs: - 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