-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 998 Bytes
/
build-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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