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
35 changes: 35 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Static analysis of shell scripts with ShellCheck

on:
# run on pull requests to the main branch
pull_request:
branches: [main]
# run on pushes to the main branch
push:
branches: [main]

# only need permission to read repository; implicitely set all other
# permissions to none
permissions:
contents: read

# cancel in progress builds for this workflow triggered by the same ref
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
shellcheck:
name: Install and run ShellCheck on shell scripts
runs-on: ubuntu-latest
steps:
- name: Install ShellCheck
run: sudo apt update && sudo apt -y install shellcheck

- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run ShellCheck
run: shellcheck scripts/*

2 changes: 1 addition & 1 deletion scripts/build-linux-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fi

log_i "Building Linux deb"
# TODO: build other packages?
make -j$(nproc) \
make "-j$(nproc)" \
ARCH=arm64 DEB_HOST_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \
bindeb-pkg

2 changes: 1 addition & 1 deletion scripts/build-u-boot-rb1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ log_i "Configuring U-Boot (${CONFIG})"
make "${CONFIG}"

log_i "Building U-Boot (with device tree ${U_BOOT_DEVICE_TREE})"
make -j`nproc` \
make "-j$(nproc)" \
CROSS_COMPILE=aarch64-linux-gnu- DEVICE_TREE="${U_BOOT_DEVICE_TREE}"

log_i "Creating Android boot image (${ABOOT_OUTPUT})"
Expand Down
Loading