Skip to content

Commit

Permalink
use latest rust
Browse files Browse the repository at this point in the history
  • Loading branch information
aptalca committed Jan 23, 2024
1 parent 4f3d863 commit e23a669
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ RUN \
autoconf \
automake \
bzip2 \
cargo \
cmake \
diffutils \
doxygen \
Expand Down Expand Up @@ -99,6 +98,13 @@ RUN \
yasm \
zlib1g-dev && \
apt-get build-dep mesa -y && \
mkdir -p /tmp/rust && \
RUST_VERSION=$(curl -fsX GET https://api.github.com/repos/rust-lang/rust/releases/latest | jq -r '.tag_name') && \
curl -fo /tmp/rust.tar.gz -L "https://static.rust-lang.org/dist/rust-${RUST_VERSION}-x86_64-unknown-linux-gnu.tar.gz" && \
tar xf /tmp/rust.tar.gz -C /tmp/rust --strip-components=1 && \
cd /tmp/rust && \
./install.sh && \
cargo install cargo-c && \
python3 -m venv /lsiopy && \
pip install -U --no-cache-dir \
pip \
Expand Down Expand Up @@ -490,7 +496,6 @@ RUN \
RUN \
echo "**** compiling rav1e ****" && \
cd /tmp/rav1e && \
cargo install [email protected]+cargo-0.74.0 --locked && \
cargo cinstall --release && \
strip -d /usr/local/lib/librav1e.so
RUN \
Expand Down Expand Up @@ -521,7 +526,6 @@ RUN \
RUN \
echo "**** compiling libdovi ****" && \
cd /tmp/libdovi/dolby_vision && \
cargo install [email protected]+cargo-0.74.0 --locked && \
cargo cinstall --release && \
strip -d /usr/local/lib/libdovi.so
RUN \
Expand Down
9 changes: 7 additions & 2 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ RUN \
autoconf \
automake \
bzip2 \
cargo \
cmake \
diffutils \
g++ \
Expand Down Expand Up @@ -77,6 +76,13 @@ RUN \
xxd \
yasm \
zlib1g-dev && \
mkdir -p /tmp/rust && \
RUST_VERSION=$(curl -fsX GET https://api.github.com/repos/rust-lang/rust/releases/latest | jq -r '.tag_name') && \
curl -fo /tmp/rust.tar.gz -L "https://static.rust-lang.org/dist/rust-${RUST_VERSION}-aarch64-unknown-linux-gnu.tar.gz" && \
tar xf /tmp/rust.tar.gz -C /tmp/rust --strip-components=1 && \
cd /tmp/rust && \
./install.sh && \
cargo install cargo-c && \
python3 -m venv /lsiopy && \
pip install -U --no-cache-dir \
pip \
Expand Down Expand Up @@ -273,7 +279,6 @@ RUN \
RUN \
echo "**** compiling rav1e ****" && \
cd /tmp/rav1e && \
cargo install [email protected]+cargo-0.74.0 --locked && \
cargo cinstall --release && \
strip -d /usr/local/lib/librav1e.so
RUN \
Expand Down

0 comments on commit e23a669

Please sign in to comment.