Skip to content

Commit

Permalink
fix ci/cd error (#195)
Browse files Browse the repository at this point in the history
* fix ci/cd error

* update copyright year

* Modify remaining years

* solve ci report settings.json code style

* update .prettierrc.json

* prettierrc fix code style

* fix rb file i.to_s and code style

* fix error Line is too long. [101/100]

* Modify the Ruby file format and restore other file formats

* update makefile and readme file space
  • Loading branch information
Jzow authored Sep 15, 2023
1 parent 49a2527 commit 52b7ac9
Show file tree
Hide file tree
Showing 958 changed files with 1,504 additions and 1,472 deletions.
6 changes: 3 additions & 3 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# SPDX-License-Identifier: MIT OR Apache-2.0
#
# Copyright (c) 2018-2022 Andre Richter <[email protected]>
# Copyright (c) 2018-2023 Andre Richter <[email protected]>

require_relative '../utils/devtool/copyright'

Expand All @@ -23,9 +23,9 @@ def copyright_check(staged_files)
copyright_check_files(staged_files)
end

##--------------------------------------------------------------------------------------------------
## -------------------------------------------------------------------------------------------------
## Execution starts here
##--------------------------------------------------------------------------------------------------
## -------------------------------------------------------------------------------------------------
staged_files = `git --no-pager diff --name-only --cached --diff-filter=d`.split(/\n/)
root_dir = `git rev-parse --show-toplevel`.strip

Expand Down
68 changes: 34 additions & 34 deletions .github/workflows/build_rpi3.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: BSP-RPi3

on:
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"

jobs:
build:
name: Build kernels
runs-on: ubuntu-22.04
build:
name: Build kernels
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
BSP=rpi3 bundle exec ruby utils/devtool.rb make
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
BSP=rpi3 bundle exec ruby utils/devtool.rb make
68 changes: 34 additions & 34 deletions .github/workflows/build_rpi4.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: BSP-RPi4

on:
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"

jobs:
build:
name: Build kernels
runs-on: ubuntu-22.04
build:
name: Build kernels
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
BSP=rpi4 bundle exec ruby utils/devtool.rb make
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
BSP=rpi4 bundle exec ruby utils/devtool.rb make
80 changes: 40 additions & 40 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
name: Various Sanity Checks

on:
push:
branches:
- master
pull_request:
branches:
- master
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
name: Various Sanity Checks
runs-on: ubuntu-22.04
build:
name: Various Sanity Checks
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: "16"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
rustup component add clippy
- name: Set up Bundler
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Set up Prettier
run: |
npm install prettier
- name: Setup misspell
run: |
curl -L -o ./install-misspell.sh https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh
sh ./install-misspell.sh -b .vendor
- name: Run checks
run: |
BSP=rpi3 bundle exec ruby utils/devtool.rb clippy
BSP=rpi4 bundle exec ruby utils/devtool.rb clippy
bundle exec ruby utils/devtool.rb copyright
bundle exec ruby utils/devtool.rb fmt_check
bundle exec ruby utils/devtool.rb misspell
bundle exec ruby utils/devtool.rb rubocop
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: "16"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
rustup component add clippy
- name: Set up Bundler
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Set up Prettier
run: |
npm install prettier
- name: Setup misspell
run: |
curl -L -o ./install-misspell.sh https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh
sh ./install-misspell.sh -b .vendor
- name: Run checks
run: |
BSP=rpi3 bundle exec ruby utils/devtool.rb clippy
BSP=rpi4 bundle exec ruby utils/devtool.rb clippy
bundle exec ruby utils/devtool.rb copyright
bundle exec ruby utils/devtool.rb fmt_check
bundle exec ruby utils/devtool.rb misspell
bundle exec ruby utils/devtool.rb rubocop
68 changes: 34 additions & 34 deletions .github/workflows/test_integration.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: Integration-Tests

on:
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"

jobs:
build:
name: Run integration tests
runs-on: ubuntu-22.04
build:
name: Run integration tests
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
bundle exec ruby utils/devtool.rb test_integration
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
bundle exec ruby utils/devtool.rb test_integration
Loading

0 comments on commit 52b7ac9

Please sign in to comment.