Skip to content

Commit 8e48a9c

Browse files
committed
try support linux-arm32
1 parent 3748ea6 commit 8e48a9c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
branches:
99
- master
10+
- workflow
1011
tags:
1112
- "*"
1213
pull_request:
@@ -25,6 +26,7 @@ jobs:
2526
include:
2627
- { os: ubuntu-20.04, target: linux, platform: linux-x64, container: 'ubuntu:18.04' }
2728
- { os: ubuntu-20.04, target: linux, platform: linux-arm64, container: 'ubuntu:18.04' }
29+
- { os: ubuntu-20.04, target: linux, platform: linux-arm32, container: 'ubuntu:18.04' }
2830
- { os: macos-11, target: darwin, platform: darwin-x64 }
2931
- { os: macos-11, target: darwin, platform: darwin-arm64 }
3032
- { os: windows-latest, target: windows, platform: win32-ia32 }
@@ -43,15 +45,19 @@ jobs:
4345
apt-get update
4446
apt-get install -y sudo git gcc-9 g++-9
4547
46-
- name: Install aarch64-linux-gnu
47-
if: ${{ matrix.platform == 'linux-arm64' }}
48-
run: |
49-
sudo apt-get update
50-
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
51-
5248
- uses: actions/checkout@v3
5349
with:
5450
submodules: recursive
51+
- uses: uraimo/run-on-arch-action@v2
52+
if: ${{ matrix.platform == 'linux-arm32' }}
53+
with:
54+
arch: armv7
55+
distro: ubuntu18.04
56+
- uses: uraimo/run-on-arch-action@v2
57+
if: ${{ matrix.platform == 'linux-arm64' }}
58+
with:
59+
arch: aarch64
60+
distro: ubuntu18.04
5561
- uses: actboy168/setup-luamake@master
5662
- run: luamake -platform ${{ matrix.platform }}
5763

0 commit comments

Comments
 (0)