Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagb committed Nov 18, 2024
1 parent 1ad3cf3 commit 58a0ca8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: build
on: workflow_dispatch
on:
workflow_dispatch:
push:
pull_request:
types: [opened]

env:
CARGO_BUILD_TARGET: i686-win7-windows-msvc
PROFILE: release
RUSTFLAGS: "-Clink-arg=/BREPRO -Ctarget-feature=+crt-static -Zremap-cwd-prefix=. -Clink-arg=/PDBALTPATH:%_PDB%"
RUSTFLAGS: "-Clink-arg=/BREPRO -Zremap-cwd-prefix=. -Clink-arg=/PDBALTPATH:%_PDB%"
CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO: packed
CARGO_PROFILE_RELEASE_DEBUG: true
CARGO_PROFILE_RELEASE_STRIP: none
Expand Down Expand Up @@ -41,7 +45,7 @@ jobs:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2024-04-15
toolchain: nightly-2024-06-18
components: rust-src
- name: Build giuroll.dll
run: |
Expand Down Expand Up @@ -78,6 +82,7 @@ jobs:
- name: Build the injector
run: |
cd injector
$Env:RUSTFLAGS = "${Env:RUSTFLAGS} -Ctarget-feature=+crt-static"
# Workaround for the FUCKING anti-virus software, many of which even detect an exe which does nothing
# but is just written in rust and compiled by nightly toolchain with `-Ctarget-feature=+crt-static`!
# Even compiled with stable toolchain, such an exe is detected as virus by some anti-virus software.
Expand Down

0 comments on commit 58a0ca8

Please sign in to comment.