Skip to content

Commit db7677a

Browse files
committed
Merge pull request #69 from minijackson/extra-linux-targets
(closes #69)
2 parents ee9d6b3 + 514737a commit db7677a

3 files changed

Lines changed: 273 additions & 114 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 17 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -103,53 +103,30 @@ jobs:
103103
- name: Collect and show test results
104104
run: python cue.py test-results
105105

106-
build-rtems:
107-
name: RTEMS${{ matrix.rtems }} / ${{ matrix.rtems_target }}
106+
build-cross:
107+
name: cross ${{ matrix.cross }} / ${{ matrix.cmp }} / ${{ matrix.configuration }}
108108
runs-on: ubuntu-20.04
109109
env:
110110
CMP: gcc
111111
BCFG: default
112-
RTEMS: ${{ matrix.rtems }}
113-
RTEMS_TARGET: ${{ matrix.rtems_target }}
114-
APT: re2c g++-mingw-w64-i686 g++-mingw-w64-x86-64 qemu-system-x86
112+
CI_CROSS_TARGETS: ${{ matrix.cross }}
113+
APT: re2c
115114
strategy:
116115
fail-fast: false
117116
matrix:
118-
include:
119-
- rtems: "4.9"
120-
rtems_target: RTEMS-pc386-qemu
121-
122-
- rtems: "4.10"
123-
rtems_target: RTEMS-pc386-qemu
124-
125-
- rtems: "5"
126-
rtems_target: RTEMS-pc686-qemu
127-
steps:
128-
- uses: actions/checkout@v2
129-
- name: Prepare and compile dependencies
130-
run: python cue.py prepare
131-
- name: Build main module (example app)
132-
run: python cue.py build
133-
- name: Run main module tests
134-
run: python cue.py -T 15M test
135-
- name: Collect and show test results
136-
run: python cue.py test-results
137-
138-
build-wine:
139-
name: WINE${{ matrix.wine }} / ${{ matrix.configuration }} / ${{ matrix.os }}
140-
runs-on: ${{ matrix.os }}
141-
env:
142-
CMP: ${{ matrix.cmp }}
143-
BCFG: ${{ matrix.configuration }}
144-
WINE: ${{ matrix.wine }}
145-
APT: re2c g++-mingw-w64-i686 g++-mingw-w64-x86-64
146-
strategy:
147-
fail-fast: false
148-
matrix:
149-
os: [ubuntu-18.04]
150-
cmp: [gcc]
151-
configuration: [default, static, debug, static-debug]
152-
wine: [32, 64]
117+
# configuration: [default, static, debug, static-debug]
118+
configuration: [default]
119+
cross:
120+
- linux-aarch64
121+
- linux-arm@arm-linux-gnueabi
122+
- linux-arm@arm-linux-gnueabihf
123+
- linux-ppc
124+
- linux-ppc64
125+
- win32-x86-mingw
126+
- windows-x64-mingw
127+
- RTEMS-pc386-qemu@4.9
128+
- RTEMS-pc386-qemu@4.10
129+
- RTEMS-pc686-qemu@5
153130
steps:
154131
- uses: actions/checkout@v2
155132
- name: Prepare and compile dependencies

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,18 @@ RTEMS 5 builds need to be switched to a newer ubuntu version
310310
**dist: focal** with Travis-CI or
311311
**image: ubuntu:focal** with GitLab CI/CD).
312312
313+
## LINUX_CROSS
314+
315+
Setting the `LINUX_CROSS_<name>` environment variable enables cross-compiling
316+
to Linux for the provided target. The value of the environment variable should
317+
be the compiler prefix to be used.
318+
319+
For example, to cross-compile for linux-arm with hard floating points
320+
321+
- ensure you have the `g++-arm-linux-gnueabihf` package installed, if your CI
322+
is on Ubuntu or Debian
323+
- set the environment variable `LINUX_CROSS_arm=arm-linux-gnueabihf`
324+
313325
## Debugging
314326
315327
Setting `VV=1` in your service configuration (e.g., `.travis.yml`) for a

0 commit comments

Comments
 (0)