Skip to content

Commit b6486c9

Browse files
authored
Merge pull request #2027 from tweag/publish-to-bcr-app-config
Add config for publish to BCR app
2 parents b2fb38b + 382de28 commit b6486c9

6 files changed

+57
-22
lines changed

.bcr/config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
moduleRoots:
2+
- "rules_haskell"

.bcr/metadata.template.json

-17
This file was deleted.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"homepage": "https://github.com/tweag/rules_haskell/",
3+
"maintainers": [
4+
{
5+
"email": "[email protected]",
6+
"github": "avdv",
7+
"name": "Claudio Bley"
8+
},
9+
{
10+
"email": "[email protected]",
11+
"github": "aherrmann",
12+
"name": "Andreas Herrmann"
13+
}
14+
],
15+
"repository": [
16+
"github:tweag/rules_haskell"
17+
],
18+
"versions": [],
19+
"yanked_versions": {}
20+
}

.bcr/rules_haskell/presubmit.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
matrix:
2+
platform:
3+
- debian10
4+
- ubuntu2004
5+
- macos
6+
- macos_arm64
7+
# disable Windows for now, it fails with
8+
# "this rule is missing dependency declarations for the following files ..."
9+
#- windows
10+
tasks:
11+
verify_targets:
12+
name: Verify build targets
13+
platform: ${{ platform }}
14+
environment:
15+
BAZEL_USE_CPP_ONLY_TOOLCHAIN: '1'
16+
shell_commands:
17+
- |
18+
if apt --version >/dev/null 2>/dev/null; then
19+
sudo apt update
20+
sudo apt install --no-install-recommends -yy libtinfo5 libgmp-dev
21+
fi
22+
batch_commands:
23+
# enforce certificate update
24+
- 'powershell -Command "Invoke-WebRequest -Uri https://hackage.haskell.org/root.json -OutFile out.json"'
25+
- set BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
26+
build_flags:
27+
- '--incompatible_enable_cc_toolchain_resolution'
28+
build_targets:
29+
- '@rules_haskell//haskell/...'
30+
- '@rules_haskell//tools/...'
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"integrity": "",
3+
"strip_prefix": "{REPO}-{VERSION}",
4+
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{VERSION}.tar.gz"
5+
}

.bcr/source.template.json

-5
This file was deleted.

0 commit comments

Comments
 (0)