blob: e9e3b04aecac6191430c45ec1fa5a1f97f4cc0fc [file] [log] [blame]
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
# disable Windows for now, it fails with
# "this rule is missing dependency declarations for the following files ..."
#- windows
bazel:
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
shell_commands:
- |
if apt --version >/dev/null 2>/dev/null; then
sudo apt update
sudo apt install --no-install-recommends -yy libtinfo5 libgmp-dev
fi
- |
if xcodebuild -version; then
xcodebuild -runFirstLaunch
fi
batch_commands:
# enforce certificate update
- 'powershell -Command "Invoke-WebRequest -Uri https://hackage.haskell.org/root.json -OutFile out.json"'
build_flags:
- '--incompatible_enable_cc_toolchain_resolution'
- '--repo_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN=1'
build_targets:
- '@rules_haskell//haskell/...'
- '@rules_haskell//tools/...'