Skip to content

Commit 04d2e44

Browse files
committed
Merge branch 'main' of https://github.com/EnzymeAD/Reactant.jl into probprog
2 parents 537de49 + 04a6289 commit 04d2e44

29 files changed

+2084
-860
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Bazel files check
2+
3+
on: [push]
4+
5+
jobs:
6+
formatting-check:
7+
name: Formatting Bazel files check
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Setup buildifier
13+
uses: jbajic/setup-buildifier@v1
14+
15+
- name: Run buildifier
16+
run: |
17+
buildifier -mode check -r .

.github/workflows/format-pr-bazel.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Bazel files auto format
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
formatting-check:
10+
name: Formatting Bazel files check
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup buildifier
16+
uses: jbajic/setup-buildifier@v1
17+
18+
- name: Run buildifier
19+
run: |
20+
buildifier -r .
21+
22+
- name: Create Pull Request
23+
id: cpr
24+
uses: peter-evans/create-pull-request@v7
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
commit-message: Format code
28+
title: 'Format code of branch "main"'
29+
branch: format-main
30+
delete-branch: true
31+
labels: format
32+
author: enzyme-ci-bot[bot] <78882869+enzyme-ci-bot[bot]@users.noreply.github.com>
33+
34+
- name: Check outputs
35+
run: |
36+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
37+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Reactant"
22
uuid = "3c362404-f566-11ee-1572-e11a4b42c853"
33
authors = ["William Moses <[email protected]>", "Valentin Churavy <[email protected]>", "Sergio Sánchez Ramírez <[email protected]>", "Paul Berg <[email protected]>", "Avik Pal <[email protected]>", "Mosè Giordano <[email protected]>"]
4-
version = "0.2.134"
4+
version = "0.2.139"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -89,8 +89,8 @@ Preferences = "1.4"
8989
PythonCall = "0.9"
9090
Random = "1.10"
9191
Random123 = "1.7"
92-
ReactantCore = "0.1.12"
93-
Reactant_jll = "0.0.201"
92+
ReactantCore = "0.1.15"
93+
Reactant_jll = "0.0.213"
9494
ScopedValues = "1.3.0"
9595
Scratch = "1.2"
9696
Sockets = "1.10"

deps/ReactantExtra/.bazelrc

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@ common --experimental_repo_remote_exec
66
common --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
77
common --cxxopt=-w --host_cxxopt=-w
88
common --define=grpc_no_ares=true
9-
common --define=tsl_link_protobuf=true
10-
common --define open_source_build=true
11-
common
12-
common --define framework_shared_object=true
13-
common --define tsl_protobuf_header_only=true
14-
common --define=use_fast_cpp_protos=true
15-
common --define=allow_oversize_protos=true
9+
common --noenable_bzlmod
10+
11+
build --repo_env=USE_PYWRAP_RULES=True
12+
build --copt=-DGRPC_BAZEL_BUILD
13+
build --host_copt=-DGRPC_BAZEL_BUILD
14+
build --action_env=GRPC_BAZEL_RUNTIME=1
15+
build --repo_env=PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=upb
16+
build --action_env=PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=upb
17+
build --repo_env=RULES_PYTHON_ENABLE_PYSTAR=0
18+
# Do not do this. This is how gRPC builds itself by default, but we don't want
19+
# that as it would link protobuf into its own set of dynamic libraries, which
20+
# would conflict with our protobuf linkage.
21+
#build --define=use_fast_cpp_protos=true
1622

1723
build -c opt
1824

0 commit comments

Comments
 (0)