Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run cabal-build-all.yml on plutus-ci #6642

Merged
merged 3 commits into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/cabal-build-all.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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'
--command bash -c 'cabal clean && cabal update && cabal build all'
Loading