Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
add windows aarch64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jmitash authored and Adam- committed Jun 24, 2023
1 parent b02e99e commit 624b2ce
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ jobs:
cmake --build build --config Release
cmake -A Win32 -G "Visual Studio 17 2022" -B build32 .
cmake --build build32 --config Release
cmake -A ARM64 -G "Visual Studio 17 2022" -B build-arm64 .
cmake --build build-arm64 --config Release
- uses: actions/upload-artifact@v3
with:
name: windows
path: |
src\main\native\packr\build\src\Release\packr.exe
src\main\native\packr\build32\src\Release\packr.exe
src\main\native\packr\build-arm64\src\Release\packr.exe
if-no-files-found: error
macos:
runs-on: macos-11
Expand Down Expand Up @@ -54,6 +57,7 @@ jobs:
- uses: actions/download-artifact@v3
with:
path: artifacts
- run: sudo apt update
- run: sudo apt install -y gcc-9-aarch64-linux-gnu g++-9-aarch64-linux-gnu
- name: build natives
run: |
Expand All @@ -68,6 +72,7 @@ jobs:
set -e
cp artifacts/windows/build/src/Release/packr.exe src/main/resources/packr-windows-x64.exe
cp artifacts/windows/build32/src/Release/packr.exe src/main/resources/packr-windows.exe
cp artifacts/windows/build-arm64/src/Release/packr.exe src/main/resources/packr-windows-arm64.exe
cp artifacts/macos/build/src/packr src/main/resources/packr-mac-x64
cp artifacts/macos/build-arm64/src/packr src/main/resources/packr-mac-arm64
cp src/main/native/packr/build/src/packr src/main/resources/packr-linux-x64
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
.project
.classpath
.settings
src/main/native/packr/build*
src/main/resources/packr*
native/build
native/obj
native/packr.xcodeproj/
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/badlogicgames/packr/Packr.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ private void copyExecutableAndClasspath(PackrOutput output) throws IOException {
exe = readResource("/packr-windows-x64.exe");
extension = ".exe";
break;
case WindowsAarch64:
exe = readResource("/packr-windows-arm64.exe");
extension = ".exe";
break;
case Linux64:
exe = readResource("/packr-linux-x64");
break;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/badlogicgames/packr/PackrConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class PackrConfig {
public enum Platform {
Windows32("windows32"),
Windows64("windows64"),
WindowsAarch64("windowsaarch64"),
Linux64("linux64"),
LinuxAarch64("linuxaarch64"),
MacOS64("mac64"),
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/badlogicgames/packr/PackrReduce.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ static void removePlatformLibs(PackrOutput output,
switch (config.platform) {
case Windows32:
case Windows64:
case WindowsAarch64:
extensions.add(".dylib");
extensions.add(".dylib.git");
extensions.add(".dylib.sha1");
Expand Down

0 comments on commit 624b2ce

Please sign in to comment.