Skip to content

Commit 47e4c9a

Browse files
authored
build: add dependencies cache (#6)
* build: try cache dependencies * build: cache test * build: add headers in release package * build: fix path
1 parent 1d2db74 commit 47e4c9a

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ jobs:
3333
with:
3434
xmake-version: latest
3535

36+
- name: Cache XMake
37+
uses: actions/cache@v3
38+
with:
39+
path: |
40+
~/AppData/Local/.xmake
41+
./.xmake
42+
key: ${{ runner.os }}-xmake-${{ hashFiles('**/xmake.lua') }}
43+
3644
- name: Get Release Version Tag
3745
if: github.event_name == 'release'
3846
run: echo "VERSION=${{ github.ref_name }}" | sed 's/=v/=/' >> $env:GITHUB_ENV
@@ -56,14 +64,19 @@ jobs:
5664
xmake f -p windows -m release -a x64 -y
5765
xmake -w -y
5866
67+
- name: Prepare Artifacts
68+
run: |
69+
mkdir artifacts
70+
cp build/windows/x64/release/PreLoader.dll artifacts
71+
cp build/windows/x64/release/PreLoader.lib artifacts
72+
cp build/windows/x64/release/PreLoader.pdb artifacts
73+
cp -r include artifacts
74+
5975
- name: Upload Artifacts
6076
uses: actions/upload-artifact@v3
6177
with:
6278
name: preloader-${{ env.VERSION }}-windows-amd64
63-
path: |
64-
build/windows/x64/release/PreLoader.dll
65-
build/windows/x64/release/PreLoader.lib
66-
build/windows/x64/release/PreLoader.pdb
79+
path: artifacts
6780

6881
upload-to-release:
6982
name: Upload to Release

src/pl/Hook.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <Windows.h>
1010

11-
#include <detours/detours.h>
11+
#include "detours/detours.h"
1212

1313
namespace pl::hook {
1414

0 commit comments

Comments
 (0)