Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: df -hT

- name: Checkout source
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Prepare firmware
run: |
Expand All @@ -45,11 +45,13 @@ jobs:
sudo chown $USER:$USER /mnt/workspace
rsync -a "$GITHUB_WORKSPACE/" /mnt/workspace/

- name: Setup ccache
uses: actions/cache@v4
- name: Cache ccache
uses: actions/cache@v5
with:
path: /tmp/ccache
key: ${{ matrix.platform }}-${{ env.CACHE_DATE }}
key: ${{ matrix.platform }}-ccache-${{ env.CACHE_DATE }}
restore-keys: |
${{ matrix.platform }}-ccache-

- name: Build firmware
working-directory: /mnt/workspace
Expand All @@ -60,13 +62,13 @@ jobs:
echo "GIT_BRANCH=${GITHUB_BRANCH}" >> $GITHUB_ENV

mkdir -p /tmp/ccache
ln -s /tmp/ccache ${HOME}/.ccache
export BR2_CCACHE_DIR=/tmp/ccache

NAME=${{ matrix.platform }}
DEFCONFIG=${NAME}_defconfig bash build.sh

- name: Upload images to workflow artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: ${{ matrix.platform }}-images-${{ github.sha }}
path: |
Expand All @@ -86,10 +88,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Download all artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: artifacts/

Expand All @@ -113,10 +115,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Download all artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: artifacts/

Expand Down
6 changes: 4 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fi

# Function to download and extract Buildroot
setup_buildroot() {
if [ ! -d "$BUILDROOT_DIR" ]; then
if [ ! -f "$BUILDROOT_DIR/Makefile" ]; then
echo "Downloading Buildroot ${BUILDROOT_VERSION}..."
if command -v wget >/dev/null 2>&1; then
wget "$BUILDROOT_SOURCE"
Expand All @@ -59,7 +59,9 @@ setup_buildroot() {
echo "Extracting Buildroot..."
tar -xzf "$BUILDROOT_TARBALL"
rm "$BUILDROOT_TARBALL"
mv "buildroot-${BUILDROOT_VERSION}" "$BUILDROOT_DIR"
# Use rsync to merge with any existing directory (e.g. cached dl/)
rsync -a "buildroot-${BUILDROOT_VERSION}/" "$BUILDROOT_DIR/"
rm -rf "buildroot-${BUILDROOT_VERSION}"
else
echo "Buildroot source already exists at $BUILDROOT_DIR"
fi
Expand Down
1 change: 1 addition & 0 deletions configs/emax_wyvern-link_defconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BR2_aarch64=y
BR2_cortex_a55=y
BR2_CCACHE=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_OVERRIDE_FILE="${BR2_EXTERNAL_OPENIPC_SBC_GS_PATH}/board/common/local.mk"
BR2_TARGET_GENERIC_HOSTNAME="openipcgs"
Expand Down
1 change: 1 addition & 0 deletions configs/openipc_bonnet_defconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BR2_aarch64=y
BR2_cortex_a55=y
BR2_CCACHE=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_OVERRIDE_FILE="${BR2_EXTERNAL_OPENIPC_SBC_GS_PATH}/board/common/local.mk"
BR2_TARGET_GENERIC_HOSTNAME="openipcgs"
Expand Down
1 change: 1 addition & 0 deletions configs/radxa_zero3_defconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BR2_aarch64=y
BR2_cortex_a55=y
BR2_CCACHE=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_OVERRIDE_FILE="${BR2_EXTERNAL_OPENIPC_SBC_GS_PATH}/board/common/local.mk"
BR2_TARGET_GENERIC_HOSTNAME="openipcgs"
Expand Down
1 change: 1 addition & 0 deletions configs/runcam_wifilink_defconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BR2_aarch64=y
BR2_cortex_a55=y
BR2_CCACHE=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_OVERRIDE_FILE="${BR2_EXTERNAL_OPENIPC_SBC_GS_PATH}/board/common/local.mk"
BR2_TARGET_GENERIC_HOSTNAME="openipcgs"
Expand Down