Build ryzenAdj Linux #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build ryzenAdj Linux | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt install build-essential cmake libpci-dev | |
- name: Clone RyzenAdj repository | |
run: git clone https://github.com/FlyGoat/RyzenAdj.git | |
- name: Build RyzenAdj | |
run: | | |
cd RyzenAdj | |
rm -r win32 | |
mkdir build && cd build | |
cmake -DCMAKE_BUILD_TYPE=Release .. | |
make | |
if [ -d ~/.local/bin ]; then ln -s ryzenadj ~/.local/bin/ryzenadj && echo "symlinked to ~/.local/bin/ryzenadj"; fi | |
if [ -d ~/.bin ]; then ln -s ryzenadj ~/.bin/ryzenadj && echo "symlinked to ~/.bin/ryzenadj"; fi | |
- name: Change permissions | |
run: chmod +x RyzenAdj/build/ryzenadj | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ryzenadj-artifact | |
path: RyzenAdj/build/ryzenadj |