Skip to content

Commit 12e0884

Browse files
update flake and dockerfile to support newer opam-repo
1 parent 5abf654 commit 12e0884

File tree

5 files changed

+15
-25
lines changed

5 files changed

+15
-25
lines changed

buildkite/src/Constants/ContainerImages.dhall

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
{ toolchainBase = "codaprotocol/ci-toolchain-base:v3"
66
, minaToolchainBookworm =
77
{ amd64 =
8-
"gcr.io/o1labs-192920/mina-toolchain@sha256:0c2764790ae18788b97a9c6361d7c4b0a96c515d176226868d929415e24f8251"
8+
"gcr.io/o1labs-192920/mina-toolchain@sha256:dfa8a0eb32742900d890590875a7f7436545cd46d8c4ff147fc6a29997e5d4f3"
99
, arm64 =
10-
"gcr.io/o1labs-192920/mina-toolchain@sha256:deb63964399029d681e39ac4ff529616b179c72fff3a0ab350e11a7099f6f23d"
10+
"gcr.io/o1labs-192920/mina-toolchain@sha256:8e92e0b4c9202e0e5f31afd48713d28bde903959ff7e55cbc1c080b0a8df5e3d"
1111
}
1212
, minaToolchainBullseye.amd64 =
13-
"gcr.io/o1labs-192920/mina-toolchain@sha256:db00940ea2c778592a520da755388014231db52aa2d89e0c853abfafc4fa5846"
13+
"gcr.io/o1labs-192920/mina-toolchain@sha256:bcc6b9899d5d99c83287c2735fb686a6169268d48b11262d9dfa03c1dfd0cece"
1414
, minaToolchainNoble =
1515
{ amd64 =
16-
"gcr.io/o1labs-192920/mina-toolchain@sha256:669c4053d2f3b7ecf5787b9dc0d908b7061c8a8908dcc766c4de57bcd1c67fa1"
16+
"gcr.io/o1labs-192920/mina-toolchain@sha256:0c6f1c0921c7f76be7b86948e1f9e82d8270002fc19f0b48647bb1604489268f"
1717
, arm64 =
18-
"gcr.io/o1labs-192920/mina-toolchain@sha256:2a71e234ca0cc42a663e42daabef3736207fd91bac414b2d511b30b336529b74"
18+
"gcr.io/o1labs-192920/mina-toolchain@sha256:182f0aa05988c5a00cc1ca5a5b651904282f3a0f7cd75faabe0a52e7d332cecb"
1919
}
2020
, minaToolchainJammy.amd64 =
21-
"gcr.io/o1labs-192920/mina-toolchain@sha256:b16023b65bb90fc2242c83b7c9f3f3c62aca521f316a16a45f5f7cb115e95f15"
21+
"gcr.io/o1labs-192920/mina-toolchain@sha256:a3e5c7dc30c67d8a9769deee282f0b5b2a513629bf272aa9b9ec7d6aee68a4e4"
2222
, minaToolchain =
23-
"gcr.io/o1labs-192920/mina-toolchain@sha256:db00940ea2c778592a520da755388014231db52aa2d89e0c853abfafc4fa5846"
23+
"gcr.io/o1labs-192920/mina-toolchain@sha256:bcc6b9899d5d99c83287c2735fb686a6169268d48b11262d9dfa03c1dfd0cece"
2424
, postgres = "postgres:12.4-alpine"
2525
, xrefcheck =
2626
"dkhamsing/awesome_bot@sha256:a8adaeb3b3bd5745304743e4d8a6d512127646e420544a6d22d9f58a07f35884"

dockerfiles/stages/1-build-deps

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ ARG OPAM_VERSION=2.3.0
4545
# `nix flake update opam-repository`).
4646
# - scripts/update_opam_switch.sh
4747
ARG OPAM_REPOSITORY_COMMIT=08d8c16c16dc6b23a5278b06dff0ac6c7a217356
48+
ARG O1LABS_OPAM_REPOSITORY_COMMIT=cabde639f92d259d4c131b00200d7a53d854ee74
4849

4950
# Golang version number used to detemine tarball name
5051
ARG GO_VERSION=1.19.11
@@ -189,10 +190,12 @@ RUN opam init --disable-sandboxing \
189190
-k git \
190191
-a /home/opam/opam-repository \
191192
--bare
193+
# We pin the opam-repo SHA so this step gets
194+
# cache-busted when we update the opam repo
192195
RUN opam repository add --yes \
193196
--all \
194197
--set-default o1-labs \
195-
https://github.com/o1-labs/opam-repository.git \
198+
https://github.com/o1-labs/opam-repository.git#${O1LABS_OPAM_REPOSITORY_COMMIT} \
196199
&& opam switch create "${OCAML_VERSION}${OCAML_REVISION}" \
197200
"${OCAML_PACKAGE}${OCAML_VERSION}${OCAML_REVISION}${OCAML_VARIANT}" \
198201
&& opam switch "${OCAML_VERSION}${OCAML_REVISION}"

flake.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
inputs.describe-dune.inputs.nixpkgs.follows = "nixpkgs";
3232
inputs.describe-dune.inputs.flake-utils.follows = "utils";
3333

34-
inputs.o1-opam-repository.url = "github:o1-labs/opam-repository";
34+
inputs.o1-opam-repository.url = "github:o1-labs/opam-repository/cabde639f92d259d4c131b00200d7a53d854ee74";
3535
inputs.o1-opam-repository.flake = false;
3636

3737
# The version must be the same as the version used in:

src/lib/crypto/kimchi_bindings/stubs/dune

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818

1919
(rule
2020
(enabled_if
21-
(and
22-
(<> %{env:RUST_TARGET_FEATURE_OPTIMISATIONS=y} n)
23-
(<> %{architecture} arm64)))
21+
(<> %{env:RUST_TARGET_FEATURE_OPTIMISATIONS=y} n))
2422
(targets rustflags.sexp)
2523
(action
2624
(with-stdout-to
@@ -29,24 +27,13 @@
2927

3028
(rule
3129
(enabled_if
32-
(and
33-
(= %{env:RUST_TARGET_FEATURE_OPTIMISATIONS=y} n)
34-
(<> %{architecture} arm64)))
30+
(= %{env:RUST_TARGET_FEATURE_OPTIMISATIONS=y} n))
3531
(targets rustflags.sexp)
3632
(action
3733
(with-stdout-to
3834
rustflags.sexp
3935
(echo "-C target-feature=-bmi2,-adx"))))
4036

41-
(rule
42-
(enabled_if
43-
(= %{architecture} arm64))
44-
(targets rustflags.sexp)
45-
(action
46-
(with-stdout-to
47-
rustflags.sexp
48-
(echo ""))))
49-
5037
;;
5138
;; rules to build the static library for kimchi
5239
;;

0 commit comments

Comments
 (0)