Skip to content

Commit

Permalink
build: update cd script to build using linux
Browse files Browse the repository at this point in the history
  • Loading branch information
alanoliveira committed Jul 27, 2024
1 parent b75d881 commit 71047f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,21 @@ on:
jobs:
publish:
name: Publishing
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Setup Zig
uses: goto-bus-stop/[email protected]
with:
version: 0.12.0
version: 0.13.0
- uses: actions/checkout@v3
- name: Building
run: zig.exe build
run: zig build
- name: Packaging final binary
shell: bash
run: |
cd zig-out/
RELEASE_NAME=motw
7z a -tzip $RELEASE_NAME.zip './bin/motw.exe' './lib/motw.dll'
certutil -hashfile $RELEASE_NAME.zip sha256 | grep -E [A-Fa-f0-9]{64} > $RELEASE_NAME.sha256
zip $RELEASE_NAME.zip './bin/motw.exe' './lib/motw.dll'
shasum -a 256 $RELEASE_NAME.zip > $RELEASE_NAME.sha256
- name: Releasing assets
uses: softprops/action-gh-release@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion src/minhook.zig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const std = @import("std");
const mh = @cImport(@cInclude("minhook.h"));
const mh = @cImport(@cInclude("MinHook.h"));

pub const ALL_HOOKS = mh.MH_ALL_HOOKS;

Expand Down

0 comments on commit 71047f2

Please sign in to comment.