Merge branch 'dev'

This commit is contained in:
NGnius (Graham) 2024-04-23 21:15:58 -04:00
commit 5f642a33e3
2 changed files with 20 additions and 13 deletions

View file

@ -1,27 +1,34 @@
#!/bin/bash
echo "--- Rust version info ---"
cd /backend
echo "--- Debug info ---"
rustup --version
rustc --version
cargo --version
mkdir -p out
id $USER
stat /backend || exit 1
stat /backend/out || exit 1
echo $(uname -a) > /backend/out/version.txt
echo "--- Building ryzenadj lib ---"
git clone https://github.com/FlyGoat/RyzenAdj ryzenadj
cd ryzenadj
git checkout -q 160502771054d31d2f4c2fa46ad42c96336f3a74
git clone https://github.com/FlyGoat/RyzenAdj /tmp/ryzenadj
cd /tmp/ryzenadj
git checkout -q v0.14.0
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
mv libryzenadj.so ../../out/libryzenadj.so
cd ../..
cmake -DCMAKE_BUILD_TYPE=Release .. || exit 1
make || exit 1
mv libryzenadj.so /backend/out/libryzenadj.so || exit 1
mv ryzenadj /backend/out/ryzenadj || exit 1
cd /backend
echo "--- Building plugin backend ---"
cargo build --profile docker
mkdir -p out
cargo build --profile docker || exit 1
mkdir -p out || exit 1
mv target/docker/powertools out/backend
mv target/docker/powertools out/backend || exit 1
echo " --- Cleaning up ---"
# remove root-owned target folder

View file

@ -5,4 +5,4 @@ echo "Container's IP address: `awk 'END{print $1}' /etc/hosts`"
cd /backend
sudo bash build-docker.sh
bash build-docker.sh