Compare commits
No commits in common. "5f642a33e301f7332282e0db38a360709d1db9ed" and "3f3241ed45a21731a15c9ae9342e7dacd16e7f39" have entirely different histories.
5f642a33e3
...
3f3241ed45
2 changed files with 13 additions and 20 deletions
|
@ -1,34 +1,27 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd /backend
|
echo "--- Rust version info ---"
|
||||||
|
|
||||||
echo "--- Debug info ---"
|
|
||||||
rustup --version
|
rustup --version
|
||||||
rustc --version
|
rustc --version
|
||||||
cargo --version
|
cargo --version
|
||||||
|
|
||||||
id $USER
|
mkdir -p out
|
||||||
stat /backend || exit 1
|
|
||||||
stat /backend/out || exit 1
|
|
||||||
|
|
||||||
echo $(uname -a) > /backend/out/version.txt
|
|
||||||
|
|
||||||
echo "--- Building ryzenadj lib ---"
|
echo "--- Building ryzenadj lib ---"
|
||||||
git clone https://github.com/FlyGoat/RyzenAdj /tmp/ryzenadj
|
git clone https://github.com/FlyGoat/RyzenAdj ryzenadj
|
||||||
cd /tmp/ryzenadj
|
cd ryzenadj
|
||||||
git checkout -q v0.14.0
|
git checkout -q 160502771054d31d2f4c2fa46ad42c96336f3a74
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release .. || exit 1
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||||
make || exit 1
|
make
|
||||||
mv libryzenadj.so /backend/out/libryzenadj.so || exit 1
|
mv libryzenadj.so ../../out/libryzenadj.so
|
||||||
mv ryzenadj /backend/out/ryzenadj || exit 1
|
cd ../..
|
||||||
cd /backend
|
|
||||||
|
|
||||||
echo "--- Building plugin backend ---"
|
echo "--- Building plugin backend ---"
|
||||||
cargo build --profile docker || exit 1
|
cargo build --profile docker
|
||||||
mkdir -p out || exit 1
|
mkdir -p out
|
||||||
|
|
||||||
mv target/docker/powertools out/backend || exit 1
|
mv target/docker/powertools out/backend
|
||||||
|
|
||||||
echo " --- Cleaning up ---"
|
echo " --- Cleaning up ---"
|
||||||
# remove root-owned target folder
|
# remove root-owned target folder
|
||||||
|
|
|
@ -5,4 +5,4 @@ echo "Container's IP address: `awk 'END{print $1}' /etc/hosts`"
|
||||||
|
|
||||||
cd /backend
|
cd /backend
|
||||||
|
|
||||||
bash build-docker.sh
|
sudo bash build-docker.sh
|
Loading…
Reference in a new issue