git: 3491ed652e0a - main - .github: Cross-build aarch64 as well as amd64 kernels.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jun 2022 17:20:43 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=3491ed652e0af484b8357ba67e45af17a0e54173
commit 3491ed652e0af484b8357ba67e45af17a0e54173
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-06-09 17:20:03 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-06-09 17:20:03 +0000
.github: Cross-build aarch64 as well as amd64 kernels.
This required adding an explicit os list to the matrix.
Reviewed by: uqs
Pull Request: https://github.com/freebsd/freebsd-src/pull/599
---
.github/workflows/cross-bootstrap-tools.yml | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/cross-bootstrap-tools.yml b/.github/workflows/cross-bootstrap-tools.yml
index fbe8fc936706..3388cc918582 100644
--- a/.github/workflows/cross-bootstrap-tools.yml
+++ b/.github/workflows/cross-bootstrap-tools.yml
@@ -8,11 +8,13 @@ on:
jobs:
build:
- name: ${{ matrix.os }} (${{ matrix.compiler }})
+ name: ${{ matrix.target_arch }} ${{ matrix.os }} (${{ matrix.compiler }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
+ target_arch: [ amd64, aarch64 ]
+ os: [ ubuntu-20.04, macos-latest ]
include:
# TODO: both Ubuntu and macOS have bmake packages, we should try them instead of bootstrapping our own copy.
- os: ubuntu-20.04
@@ -23,6 +25,10 @@ jobs:
compiler: clang-13
cross-bindir: /usr/local/opt/llvm/bin
pkgs: bmake libarchive
+ - target_arch: amd64
+ target: amd64
+ - target_arch: aarch64
+ target: arm64
steps:
- uses: actions/checkout@v2
- name: install packages (Ubuntu)
@@ -46,8 +52,8 @@ jobs:
# heh, works on Linux/BSD/macOS ...
echo "NPROC=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1`" >> $GITHUB_ENV
- name: bootstrap bmake
- run: ./tools/build/make.py --debug $EXTRA_BUILD_ARGS TARGET=amd64 TARGET_ARCH=amd64 -n
+ run: ./tools/build/make.py --debug $EXTRA_BUILD_ARGS TARGET=${{ matrix.target }} TARGET_ARCH=${{ matrix.target_arch }} -n
- name: make kernel-toolchain
- run: ./tools/build/make.py --debug $EXTRA_BUILD_ARGS TARGET=amd64 TARGET_ARCH=amd64 kernel-toolchain -s -j$NPROC
+ run: ./tools/build/make.py --debug $EXTRA_BUILD_ARGS TARGET=${{ matrix.target }} TARGET_ARCH=${{ matrix.target_arch }} kernel-toolchain -s -j$NPROC
- name: make buildkernel
- run: ./tools/build/make.py --debug $EXTRA_BUILD_ARGS TARGET=amd64 TARGET_ARCH=amd64 KERNCONF=GENERIC NO_MODULES=yes buildkernel -s -j$NPROC $EXTRA_MAKE_ARGS
+ run: ./tools/build/make.py --debug $EXTRA_BUILD_ARGS TARGET=${{ matrix.target }} TARGET_ARCH=${{ matrix.target_arch }} KERNCONF=GENERIC NO_MODULES=yes buildkernel -s -j$NPROC $EXTRA_MAKE_ARGS