From 7a9a2da3748600cc4d6100eeaedd64c956b5d8e9 Mon Sep 17 00:00:00 2001 From: zeme-wana <15709674+zeme-wana@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:52:55 +0100 Subject: [PATCH] Run cabal-build-all.yml on plutus-ci (#6642) --- .github/workflows/cabal-build-all.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cabal-build-all.yml b/.github/workflows/cabal-build-all.yml index ed3261d2efb..6de3bed6690 100644 --- a/.github/workflows/cabal-build-all.yml +++ b/.github/workflows/cabal-build-all.yml @@ -1,4 +1,4 @@ -# This workflow runs `cabal build all` on both Linux and macOS with all supported GHC versions. +# This workflow runs `cabal build all` on Linux with all supported GHC versions. # Normally, if Nix can build the shell and the packages via haskell.nix, we can be confident that # Cabal can build the project inside the Nix shell. # However, this workflow is implemented to catch edge cases, such as the one described in @@ -8,24 +8,23 @@ name: "👷 Cabal Build All" on: workflow_dispatch: - # push: - # branches: - # - master + push: + branches: + - master jobs: build: - runs-on: ${{ matrix.os }} + runs-on: [plutus-ci, self-hosted] strategy: matrix: - os: [ubuntu-latest, macOS-latest] - ghc: [ghc810, ghc910, ghc96, ghc98] # Add GHC versions as needed + ghc: [ghc810, ghc910, ghc96, ghc98] fail-fast: false steps: - name: Checkout uses: actions/checkout@main - - - name: Cold Build On ${{ matrix.os }} & ${{ matrix.ghc }} + + - name: Cold Build On ${{ matrix.ghc }} run: | nix develop --no-warn-dirty --accept-flake-config .#${{ matrix.ghc }} \ - --command bash -c 'cabal clean && cabal update && cabal build all' \ No newline at end of file + --command bash -c 'cabal clean && cabal update && cabal build all' \ No newline at end of file