Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pamburus committed Dec 17, 2024
1 parent 4870d7a commit 5d2d465
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,22 @@ jobs:
if: matrix.archiver == 'tar.gz' && matrix.universal == true
run: tar -C ./target -cz -f ${{ matrix.asset }} hl

- name: Check file type
if: matrix.family == 'windows'
shell: powershell
run: |
$path = ".\target\${{ matrix.target }}\release\hl.exe";
$bytes = [System.IO.File]::ReadAllBytes($path);
$peOffset = [BitConverter]::ToInt32($bytes, 60);
$machine = [BitConverter]::ToUInt16($bytes, $peOffset + 4);
switch ($machine) {
0x014c { "Architecture: x86 (32-bit)" }
0x8664 { "Architecture: x64 (64-bit)" }
0xAA64 { "Architecture: ARM64 (aarch64)" }
0x01C0 { "Architecture: ARM (32-bit)" }
default { "Architecture: Unknown" }
}
# - name: Upload binaries to release
# uses: svenstaro/upload-release-action@v2
# with:
Expand Down

0 comments on commit 5d2d465

Please sign in to comment.