2022-09-05 19:24:01 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "--- Rust version info ---"
|
|
|
|
rustup --version
|
|
|
|
rustc --version
|
|
|
|
cargo --version
|
|
|
|
|
2023-02-10 04:23:08 +00:00
|
|
|
mkdir -p out
|
|
|
|
|
|
|
|
echo "--- Building ryzenadj lib ---"
|
|
|
|
git clone https://github.com/FlyGoat/RyzenAdj ryzenadj
|
|
|
|
cd ryzenadj
|
2023-04-02 18:36:33 +01:00
|
|
|
git checkout -q 160502771054d31d2f4c2fa46ad42c96336f3a74
|
2023-02-10 04:23:08 +00:00
|
|
|
mkdir build && cd build
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
|
|
make
|
|
|
|
mv libryzenadj.so ../../out/libryzenadj.so
|
|
|
|
cd ../..
|
|
|
|
|
2022-09-05 19:24:01 +01:00
|
|
|
echo "--- Building plugin backend ---"
|
2022-12-05 23:51:49 +00:00
|
|
|
cargo build --profile docker
|
2022-09-05 19:24:01 +01:00
|
|
|
mkdir -p out
|
2023-02-10 04:23:08 +00:00
|
|
|
|
|
|
|
mv target/docker/powertools out/backend
|
2022-09-05 19:24:01 +01:00
|
|
|
|
|
|
|
echo " --- Cleaning up ---"
|
|
|
|
# remove root-owned target folder
|
|
|
|
cargo clean
|
2023-02-10 04:23:08 +00:00
|
|
|
# remove newly-cloned git repo and artifacts
|
|
|
|
rm -rf ./ryzenadj
|