Skip to content

Commit de57f22

Browse files
committed
feat: read notes
Added a notification action to notify WaspLib2 there's a new release
1 parent 0a9e03b commit de57f22

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
env:
1010
CARGO_TERM_COLOR: always
1111
PROJECT_NAME: waspinput
12-
NAME_WIN32: wasplib32.dll
13-
NAME_WIN64: wasplib64.dll
12+
NAME_WIN32: waspinput32.dll
13+
NAME_WIN64: waspinput64.dll
1414

1515
jobs:
1616
build:
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout source
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v4.2.2
2525

2626
- name: Install Rust toolchain
2727
uses: actions-rs/toolchain@v1

.github/workflows/notify.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Notify WaspLib2 of new release.
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Trigger repository_dispatch in target repo
12+
env:
13+
TARGET_REPO: Torwent/WaspLib2
14+
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
15+
TAG_NAME: ${{ github.event.release.tag_name }}
16+
run: |
17+
curl -X POST \
18+
-H "Accept: application/vnd.github+json" \
19+
-H "Authorization: Bearer $TOKEN" \
20+
https://api.github.com/repos/$TARGET_REPO/dispatches \
21+
-d "{\"event_type\": \"release-published\", \"client_payload\": {\"tag_name\": \"$TAG_NAME\"}}"

src/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pub mod client;
21
pub mod graphics;
2+
pub mod hooks;

src/shared/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use windows::{
4040
},
4141
};
4242

43-
use crate::client::client::{start_thread, unhook_wgl_swap_buffers, unhook_wndproc};
43+
use crate::client::hooks::{start_thread, unhook_wgl_swap_buffers, unhook_wndproc};
4444

4545
use super::memory::{MemoryManager, MEMORY_MANAGER};
4646

0 commit comments

Comments
 (0)