Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Crosscompile for Windows arm64 #22612

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,50 @@ jobs:
name: w64-static-2022
path: prefix\bin\r2blob.static.exe

w64-arm64-static-2022:
runs-on: windows-2022
steps:
- name: Win configure Pagefile
uses: al-cheb/[email protected]
with:
minimum-size: 16GB
maximum-size: 16GB
disk-root: "C:"
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Preparing nmake
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64_arm64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/frida/meson.git@f7f25b19a8d71cebf8e2934733eb041eb6862eee
pip install ninja r2pipe wget r2env
- name: preconfigure
continue-on-error: true
shell: cmd
run: preconfigure arm64
- name: Build with meson + ninja
shell: cmd
run: |
call configure static
call make
- name: Test executable
continue-on-error: true
shell: cmd
run: |
cd prefix\bin
r2blob -v
- uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: w64-arm64-static-2022
path: prefix\bin\r2blob.static.exe

w64-static:
runs-on: windows-2019
steps:
Expand Down
2 changes: 1 addition & 1 deletion preconfigure.bat
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ REM: Targets: x86 amd64 x64 arm arm64
IF "%*" == "x86" (
set VSARCH=x86
) ELSE IF "%*" == "arm64" (
set VSARCH=x86_arm64
set VSARCH=x64_arm64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here also amd64_arm64 for crosscompile?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is from visual studio, the naming convention is different between the action and the compiler. i think this is fine

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh just checked the vs batch script and seems to handle also amd64_arm64 which is the same as x64_arm64, so both options are valid 👍

) ELSE (
set VSARCH=x86_amd64
)
Expand Down
Loading