cmake(ci): rework toolchain target

* Add toolchain_ prefix to avoid conflict with "platform" targets
* Update workflows
* Fix mipsel/mips64el target in cross_compile.sh
This commit is contained in:
Corentin Le Molgat
2023-10-23 13:58:31 +02:00
parent 80193d18fb
commit a5b650e203
5 changed files with 62 additions and 62 deletions

View File

@@ -2,22 +2,22 @@ name: aarch64 Toolchain
on: [push, pull_request, workflow_dispatch]
# Building using the github runner environement directly.
jobs:
# Building using the github runner environement directly.
aarch64:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
[aarch64], # bootlin
[aarch64be] # bootlin
]
targets: [aarch64, aarch64be]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
name: Linux • Toolchain ${{ matrix.targets }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make --directory=cmake ${TARGET}_build
- name: Test
run: make --directory=cmake ${TARGET}_test
- name: Build env stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_env
- name: Build devel stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_devel
- name: Build build stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_build
- name: Build Test stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_test

View File

@@ -2,22 +2,22 @@ name: mips Toolchain
on: [push, pull_request, workflow_dispatch]
# Building using the github runner environement directly.
jobs:
# Building using the github runner environement directly.
mips:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
[mips64],
[mips64el]
]
targets: [mips64, mips64el]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
name: Linux • Toolchain ${{ matrix.targets }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make --directory=cmake ${TARGET}_build
- name: Test
run: make --directory=cmake ${TARGET}_test
- name: Build env stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_env
- name: Build devel stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_devel
- name: Build build stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_build
- name: Build Test stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_test

View File

@@ -2,22 +2,22 @@ name: powerpc Toolchain
on: [push, pull_request, workflow_dispatch]
# Building using the github runner environement directly.
jobs:
# Building using the github runner environement directly.
powerpc:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
[ppc64],
[ppc64le],
]
targets: [ppc64, ppc64le]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
name: Linux • Toolchain ${{ matrix.targets }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make --directory=cmake ${TARGET}_build
- name: Test
run: make --directory=cmake ${TARGET}_test
- name: Build env stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_env
- name: Build devel stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_devel
- name: Build build stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_build
- name: Build Test stage
run: make --directory=cmake toolchain_${{ matrix.targets }}_test