Skip to content

Commit c0cdc77

Browse files
committed
complete cache by making temp a 'solana program'
1 parent 1ea0566 commit c0cdc77

File tree

88 files changed

+528
-264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+528
-264
lines changed

docker/v1.18.25.Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ FROM --platform=linux/amd64 rust@sha256:b7b25312e49dfbe6cab04c89d5a8ed5df2df9714
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.25/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6-
# Call cargo build-sbf to trigger installation of associated platform tools
7-
RUN cargo init temp --edition 2021 && \
6+
# Call cargo test-sbf to trigger installation of associated platform tools
7+
RUN cargo init --lib temp --edition 2021 && \
88
cd temp && \
9-
cargo build-sbf && \
9+
echo "[lib]" >> Cargo.toml && \
10+
echo 'crate-type = ["cdylib", "lib"]' >> Cargo.toml && \
11+
cargo test-sbf && \
12+
cd ../ && \
1013
rm -rf temp
1114
WORKDIR /build
1215

docker/v1.18.26.Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ FROM --platform=linux/amd64 rust@sha256:b7b25312e49dfbe6cab04c89d5a8ed5df2df9714
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.26/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6-
# Call cargo build-sbf to trigger installation of associated platform tools
7-
RUN cargo init temp --edition 2021 && \
6+
# Call cargo test-sbf to trigger installation of associated platform tools
7+
RUN cargo init --lib temp --edition 2021 && \
88
cd temp && \
9-
cargo build-sbf && \
9+
echo "[lib]" >> Cargo.toml && \
10+
echo 'crate-type = ["cdylib", "lib"]' >> Cargo.toml && \
11+
cargo test-sbf && \
12+
cd ../ && \
1013
rm -rf temp
1114
WORKDIR /build
1215

docker/v2.0.0.Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.0/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6-
# Call cargo build-sbf to trigger installation of associated platform tools
7-
RUN cargo init temp --edition 2021 && \
6+
# Call cargo test-sbf to trigger installation of associated platform tools
7+
RUN cargo init --lib temp --edition 2021 && \
88
cd temp && \
9-
cargo build-sbf && \
9+
echo "[lib]" >> Cargo.toml && \
10+
echo 'crate-type = ["cdylib", "lib"]' >> Cargo.toml && \
11+
cargo test-sbf && \
12+
cd ../ && \
1013
rm -rf temp
1114
WORKDIR /build
1215

docker/v2.0.1.Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.1/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6-
# Call cargo build-sbf to trigger installation of associated platform tools
7-
RUN cargo init temp --edition 2021 && \
6+
# Call cargo test-sbf to trigger installation of associated platform tools
7+
RUN cargo init --lib temp --edition 2021 && \
88
cd temp && \
9-
cargo build-sbf && \
9+
echo "[lib]" >> Cargo.toml && \
10+
echo 'crate-type = ["cdylib", "lib"]' >> Cargo.toml && \
11+
cargo test-sbf && \
12+
cd ../ && \
1013
rm -rf temp
1114
WORKDIR /build
1215

docker/v2.0.10.Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.10/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6-
# Call cargo build-sbf to trigger installation of associated platform tools
7-
RUN cargo init temp --edition 2021 && \
6+
# Call cargo test-sbf to trigger installation of associated platform tools
7+
RUN cargo init --lib temp --edition 2021 && \
88
cd temp && \
9-
cargo build-sbf && \
9+
echo "[lib]" >> Cargo.toml && \
10+
echo 'crate-type = ["cdylib", "lib"]' >> Cargo.toml && \
11+
cargo test-sbf && \
12+
cd ../ && \
1013
rm -rf temp
1114
WORKDIR /build
1215

docker/v2.0.11.Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.11/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6-
# Call cargo build-sbf to trigger installation of associated platform tools
7-
RUN cargo init temp --edition 2021 && \
6+
# Call cargo test-sbf to trigger installation of associated platform tools
7+
RUN cargo init --lib temp --edition 2021 && \
88
cd temp && \
9-
cargo build-sbf && \
9+
echo "[lib]" >> Cargo.toml && \
10+
echo 'crate-type = ["cdylib", "lib"]' >> Cargo.toml && \
11+
cargo test-sbf && \
12+
cd ../ && \
1013
rm -rf temp
1114
WORKDIR /build
1215

docker/v2.0.13.Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.13/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6-
# Call cargo build-sbf to trigger installation of associated platform tools
7-
RUN cargo init temp --edition 2021 && \
6+
# Call cargo test-sbf to trigger installation of associated platform tools
7+
RUN cargo init --lib temp --edition 2021 && \
88
cd temp && \
9-
cargo build-sbf && \
9+
echo "[lib]" >> Cargo.toml && \
10+
echo 'crate-type = ["cdylib", "lib"]' >> Cargo.toml && \
11+
cargo test-sbf && \
12+
cd ../ && \
1013
rm -rf temp
1114
WORKDIR /build
1215

docker/v2.0.14.Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.14/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6-
# Call cargo build-sbf to trigger installation of associated platform tools
7-
RUN cargo init temp --edition 2021 && \
6+
# Call cargo test-sbf to trigger installation of associated platform tools
7+
RUN cargo init --lib temp --edition 2021 && \
88
cd temp && \
9-
cargo build-sbf && \
9+
echo "[lib]" >> Cargo.toml && \
10+
echo 'crate-type = ["cdylib", "lib"]' >> Cargo.toml && \
11+
cargo test-sbf && \
12+
cd ../ && \
1013
rm -rf temp
1114
WORKDIR /build
1215

docker/v2.0.15.Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.15/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6-
# Call cargo build-sbf to trigger installation of associated platform tools
7-
RUN cargo init temp --edition 2021 && \
6+
# Call cargo test-sbf to trigger installation of associated platform tools
7+
RUN cargo init --lib temp --edition 2021 && \
88
cd temp && \
9-
cargo build-sbf && \
9+
echo "[lib]" >> Cargo.toml && \
10+
echo 'crate-type = ["cdylib", "lib"]' >> Cargo.toml && \
11+
cargo test-sbf && \
12+
cd ../ && \
1013
rm -rf temp
1114
WORKDIR /build
1215

docker/v2.0.16.Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.16/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6-
# Call cargo build-sbf to trigger installation of associated platform tools
7-
RUN cargo init temp --edition 2021 && \
6+
# Call cargo test-sbf to trigger installation of associated platform tools
7+
RUN cargo init --lib temp --edition 2021 && \
88
cd temp && \
9-
cargo build-sbf && \
9+
echo "[lib]" >> Cargo.toml && \
10+
echo 'crate-type = ["cdylib", "lib"]' >> Cargo.toml && \
11+
cargo test-sbf && \
12+
cd ../ && \
1013
rm -rf temp
1114
WORKDIR /build
1215

0 commit comments

Comments
 (0)