Skip to content

Commit 9c242ad

Browse files
authored
Build ARM64 with actions (#65)
1 parent d6dd7fd commit 9c242ad

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
{
2121
name: windows,
2222
runner: windows-latest
23+
},
24+
{
25+
name: linux-arm,
26+
runner: ubuntu-20.04
2327
}
2428
]
2529
ido: [5.3, 7.1]
@@ -50,6 +54,25 @@ jobs:
5054
run: |
5155
make -j $(nproc) RELEASE=1 VERSION=${{ matrix.ido }}
5256
57+
- name: Install dependencies (Linux ARM64)
58+
shell: bash
59+
if: matrix.os.name == 'linux-arm'
60+
run: |
61+
sudo apt update
62+
sudo apt install gcc-aarch64-linux-gnu
63+
64+
- name: Build recomp binary (Linux ARM64)
65+
shell: bash
66+
if: matrix.os.name == 'linux-arm'
67+
run: |
68+
make -j $(nproc) RELEASE=1 setup
69+
70+
- name: Run the build script (Linux)
71+
shell: bash
72+
if: matrix.os.name == 'linux-arm'
73+
run: |
74+
make -j $(nproc) RELEASE=1 VERSION=${{ matrix.ido }} CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ STRIP=aarch64-linux-gnu-strip
75+
5376
# MacOS
5477
- name: Install dependencies (MacOS)
5578
shell: bash

0 commit comments

Comments
 (0)