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

ci: Build on FreeBSD only when build workflow runs #3297

Merged
merged 1 commit into from
Feb 29, 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
18 changes: 18 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ build_task:
name: Build FreeBSD (Stack)
install_script: pkg install -y postgresql16-client hs-stack git

# This also includes nix and cabal related files, because the
# Github Actions build workflow will run on those and the
# "Fetch from FreeBSD" job should not fail.
only_if: |
changesInclude(
'.github/workflows/build.yaml',
'.github/actions/setup-nix/**',
'.github/scripts/**',
'.github/*',
'*.nix',
'nix/**',
'.cirrus.yml',
'cabal.project*',
'postgrest.cabal',
'stack.yaml*',
'**.hs'
)

stack_cache:
folders: /.stack
fingerprint_script: cat postgrest.cabal stack.yaml.lock
Expand Down
Loading