Skip to content

Commit cee8553

Browse files
committed
Build for 32-bit and 64-bit in different jobs
1 parent 349f959 commit cee8553

2 files changed

Lines changed: 40 additions & 20 deletions

File tree

.github/workflows/build.yml

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,57 @@ name: Build App
33
on: [push]
44

55
jobs:
6-
build-arm:
7-
runs-on: windows-11-arm
8-
continue-on-error: true
6+
build:
7+
runs-on: windows-latest
8+
9+
strategy:
10+
matrix:
11+
include:
12+
- target: x86_64-pc-windows-msvc
13+
- target: i686-pc-windows-msvc
14+
prefix: _32bit
15+
916
steps:
1017
- name: Checkout Code
1118
uses: actions/checkout@v4
1219

13-
- name: Build
14-
run: cargo build --release
20+
- name: Build project
21+
run: |
22+
rustup target add ${{ matrix.target }}
23+
cargo build --release --target ${{ matrix.target }}
1524
16-
build:
25+
- name: Add prefix
26+
if: matrix.prefix
27+
shell: powershell
28+
run: |
29+
$binaries = Get-ChildItem -Path .\target\${{ matrix.target }}\release\* -Include *.dll,*.exe
30+
$binaries | Rename-Item -NewName { $_.Name + "${{ matrix.prefix }}" };
31+
32+
- name: Upload ${{ matrix.target }} artifacts
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: ${{ matrix.target }}-binaries
36+
path: |
37+
target/${{ matrix.target }}/release/*.exe
38+
target/${{ matrix.target }}/release/*.dll
39+
if-no-files-found: error
40+
41+
release:
1742
runs-on: windows-latest
1843

1944
steps:
2045
- name: Checkout Code
2146
uses: actions/checkout@v4
2247

23-
- name: Build amd64
24-
run: cargo build --release
25-
26-
- name: Build x86
27-
run: |
28-
rustup target add i686-pc-windows-msvc
29-
cargo build --release -p payload --target i686-pc-windows-msvc
30-
31-
- name: Copy x86 binaries
32-
shell: powershell
33-
run: Copy-Item -Path .\target\i686-pc-windows-msvc\release\utils.dll -Destination .\target\release\utils32.dll
48+
- name: Download build artifacts
49+
uses: actions/download-artifact@v5
50+
with:
51+
pattern: "*-binaries"
52+
path: dist
53+
merge-multiple: true
3454

3555
- name: Generate zip bundle
36-
run: 7z a -tzip Invisiwind.zip .\hide.ahk .\target\release\*.dll .\target\release\*.exe
56+
run: 7z a -tzip Invisiwind.zip .\hide.ahk .\dist\*.dll .\dist\*.exe
3757

3858
- name: Build Installer
3959
run: iscc .\Misc\inno.iss

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Simple: The tool performs dll injection to [SetWindowDisplayAffinity](https://do
2323

2424
## How do I install it?
2525

26-
<img align="right" src="Misc/screenshot-light.png">
27-
2826
> [!NOTE]
2927
> This software may be detected as a virus/trojan by your antivirus due to the fact that it performs dll injection. This is a false positive and can be safely ignored.
3028
3129
To use this application, you can either use the installer or the portable version.
3230

31+
<img align="right" src="Misc/screenshot-light.png">
32+
3333
### Use the installer (recommended)
3434

3535
- Download and run [InvisiwindInstaller.exe](https://github.com/radiantly/Invisiwind/releases/download/latest/InvisiwindInstaller.exe).

0 commit comments

Comments
 (0)