Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kylon committed Sep 7, 2024
1 parent f0bc1b1 commit b61fe26
Showing 1 changed file with 30 additions and 14 deletions.
44 changes: 30 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,46 @@ jobs:
steps:
# Checks-out
- uses: actions/checkout@v2

- uses: ilammy/msvc-dev-cmd@v1

#don't use run-cmake for windows because only one build should add warnings to pull request
- name: Build Debug
- name: Build ryzenadj Debug
run: |
cmake -B debug -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug
cd debug
nmake
- name: Upload ryzenadj debug
- name: Upload ryzenadj Debug
uses: actions/upload-artifact@v2
with:
name: ryzenadj-win64-debug
path: |
debug/ryzenadj.exe
debug/lib/libryzenadj.dll
- name: Build Release
- name: Build libryzenadj Debug
run: |
cmake -S lib -B debuglib -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug
cd debuglib
nmake
- name: Upload libryzenadj Debug
uses: actions/upload-artifact@v2
with:
name: libryzenadj-win64-debug
path: |
debuglib/libryzenadj.dll
- name: Build ryzenadj Release
run: |
cmake -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release
cd build
nmake
- name: Prepair Release Folder
- name: Prepair ryzenadj Release Folder
run: |
mkdir release
copy build/ryzenadj.exe release/
copy build/lib/libryzenadj.dll release/
copy build/lib/libryzenadj.lib release/
copy win32/* release/
copy examples/* release/
Expand Down Expand Up @@ -70,7 +81,7 @@ jobs:
# }
# exit 0

- name: Upload ryzenadj
- name: Upload ryzenadj Release
uses: actions/upload-artifact@v2
with:
name: ryzenadj-win64
Expand All @@ -79,13 +90,19 @@ jobs:
!release/*.lib
!release/*.exp
- name: Upload libryzenadj
- name: Build libryzenadj Release
run: |
cmake -S lib -B buildlib -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release
cd buildlib
nmake
- name: Upload libryzenadj Release
uses: actions/upload-artifact@v2
with:
name: libryzenadj-win64
path: |
./build/lib/libryzenadj.dll
./build/lib/libryzenadj.lib
./buildlib/libryzenadj.dll
./buildlib/libryzenadj.lib
./lib/ryzenadj.h
./win32/inpoutx64.dll
./win32/WinRing0x64.dll
Expand All @@ -107,8 +124,8 @@ jobs:

- name: Test make like readme
run: |
mkdir build && cd build
cmake DCMAKE_BUILD_TYPE=Release ..
cmake -B build -DCMAKE_BUILD_TYPE=Release
cd build
make
# - name: Test Scripts
Expand All @@ -128,4 +145,3 @@ jobs:
# exit 1
# fi
# exit 0

0 comments on commit b61fe26

Please sign in to comment.