Skip to content

Commit 390006a

Browse files
committed
Update buildcommit.yml
1 parent 464c90f commit 390006a

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/buildcommit.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,36 @@ on:
88

99
jobs:
1010

11-
build-linux-x86:
11+
build-linux-gnu:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
1515
matrix:
16+
name: [AMD64, i386, arm]
17+
platformflags: ["", "-m32"]
18+
platformtools: ["", "", "arm-linux-gnueabi"]
19+
emulator: ["", "", "qemu-arm"]
1620
include:
1721
- platformflags: ""
1822
name: "AMD64"
1923
- platformflags: -m32
2024
name: "i386"
21-
name: build-linux-x86 (${{matrix.name}})
25+
name: build-linux-gnu (${{matrix.name}})
2226
env:
2327
PLATFORMFLAGS: ${{matrix.platformflags}}
28+
PLATFORM_PREFIX: ${{matrix.platformtools}}-
29+
EMULATOR: ${{matrix.emulator}}
2430
steps:
2531
- uses: actions/checkout@v2
2632
- name: install multilib
2733
run: sudo apt-get install --no-install-recommends -y gcc-multilib g++-multilib
2834
if: ${{ matrix.name == 'i386' }}
35+
- name: install qemu
36+
if: matrix.emulator
37+
run: sudo apt-get install --no-install-recommends -y qemu-user
38+
- name: install abi lib
39+
if: matrix.platformtools
40+
run: sudo apt-get install --no-install-recommends -y gcc-${{matrix.platformtools}} g++-${{matrix.platformtools}}
2941
- name: make
3042
run: make all
3143
- name: test

0 commit comments

Comments
 (0)