Skip to content

Commit 52b7ac9

Browse files
authored
fix ci/cd error (#195)
* 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
1 parent 49a2527 commit 52b7ac9

File tree

958 files changed

+1504
-1472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

958 files changed

+1504
-1472
lines changed

.githooks/pre-commit

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# SPDX-License-Identifier: MIT OR Apache-2.0
55
#
6-
# Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
6+
# Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
77

88
require_relative '../utils/devtool/copyright'
99

@@ -23,9 +23,9 @@ def copyright_check(staged_files)
2323
copyright_check_files(staged_files)
2424
end
2525

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

.github/workflows/build_rpi3.yml

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
name: BSP-RPi3
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
paths-ignore:
8-
- "utils/**"
9-
- "doc/**"
10-
- "docker/**"
11-
pull_request:
12-
branches:
13-
- master
14-
paths-ignore:
15-
- "utils/**"
16-
- "doc/**"
17-
- "docker/**"
18-
schedule:
19-
- cron: "0 5 * * *"
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- "utils/**"
9+
- "doc/**"
10+
- "docker/**"
11+
pull_request:
12+
branches:
13+
- master
14+
paths-ignore:
15+
- "utils/**"
16+
- "doc/**"
17+
- "docker/**"
18+
schedule:
19+
- cron: "0 5 * * *"
2020

2121
jobs:
22-
build:
23-
name: Build kernels
24-
runs-on: ubuntu-22.04
22+
build:
23+
name: Build kernels
24+
runs-on: ubuntu-22.04
2525

26-
steps:
27-
- uses: actions/checkout@v3
28-
- name: Set up Ruby
29-
uses: ruby/setup-ruby@v1
30-
- name: Set up Rust nightly
31-
run: |
32-
cargo install cargo-binutils rustfilt
33-
- name: Set up Ruby
34-
run: |
35-
gem install bundler
36-
bundle config set without 'uart'
37-
bundle install --retry 3
38-
- name: Run
39-
run: |
40-
BSP=rpi3 bundle exec ruby utils/devtool.rb make
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Set up Ruby
29+
uses: ruby/setup-ruby@v1
30+
- name: Set up Rust nightly
31+
run: |
32+
cargo install cargo-binutils rustfilt
33+
- name: Set up Ruby
34+
run: |
35+
gem install bundler
36+
bundle config set without 'uart'
37+
bundle install --retry 3
38+
- name: Run
39+
run: |
40+
BSP=rpi3 bundle exec ruby utils/devtool.rb make

.github/workflows/build_rpi4.yml

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
name: BSP-RPi4
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
paths-ignore:
8-
- "utils/**"
9-
- "doc/**"
10-
- "docker/**"
11-
pull_request:
12-
branches:
13-
- master
14-
paths-ignore:
15-
- "utils/**"
16-
- "doc/**"
17-
- "docker/**"
18-
schedule:
19-
- cron: "0 5 * * *"
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- "utils/**"
9+
- "doc/**"
10+
- "docker/**"
11+
pull_request:
12+
branches:
13+
- master
14+
paths-ignore:
15+
- "utils/**"
16+
- "doc/**"
17+
- "docker/**"
18+
schedule:
19+
- cron: "0 5 * * *"
2020

2121
jobs:
22-
build:
23-
name: Build kernels
24-
runs-on: ubuntu-22.04
22+
build:
23+
name: Build kernels
24+
runs-on: ubuntu-22.04
2525

26-
steps:
27-
- uses: actions/checkout@v3
28-
- name: Set up Ruby
29-
uses: ruby/setup-ruby@v1
30-
- name: Set up Rust nightly
31-
run: |
32-
cargo install cargo-binutils rustfilt
33-
- name: Set up Ruby
34-
run: |
35-
gem install bundler
36-
bundle config set without 'uart'
37-
bundle install --retry 3
38-
- name: Run
39-
run: |
40-
BSP=rpi4 bundle exec ruby utils/devtool.rb make
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Set up Ruby
29+
uses: ruby/setup-ruby@v1
30+
- name: Set up Rust nightly
31+
run: |
32+
cargo install cargo-binutils rustfilt
33+
- name: Set up Ruby
34+
run: |
35+
gem install bundler
36+
bundle config set without 'uart'
37+
bundle install --retry 3
38+
- name: Run
39+
run: |
40+
BSP=rpi4 bundle exec ruby utils/devtool.rb make

.github/workflows/sanity.yml

+40-40
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
name: Various Sanity Checks
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
1010

1111
jobs:
12-
build:
13-
name: Various Sanity Checks
14-
runs-on: ubuntu-22.04
12+
build:
13+
name: Various Sanity Checks
14+
runs-on: ubuntu-22.04
1515

16-
steps:
17-
- uses: actions/checkout@v3
18-
- name: Set up Node
19-
uses: actions/setup-node@v1
20-
with:
21-
node-version: "16"
22-
- name: Set up Ruby
23-
uses: ruby/setup-ruby@v1
24-
- name: Set up Rust nightly
25-
run: |
26-
rustup component add clippy
27-
- name: Set up Bundler
28-
run: |
29-
gem install bundler
30-
bundle config set without 'uart'
31-
bundle install --retry 3
32-
- name: Set up Prettier
33-
run: |
34-
npm install prettier
35-
- name: Setup misspell
36-
run: |
37-
curl -L -o ./install-misspell.sh https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh
38-
sh ./install-misspell.sh -b .vendor
39-
- name: Run checks
40-
run: |
41-
BSP=rpi3 bundle exec ruby utils/devtool.rb clippy
42-
BSP=rpi4 bundle exec ruby utils/devtool.rb clippy
43-
bundle exec ruby utils/devtool.rb copyright
44-
bundle exec ruby utils/devtool.rb fmt_check
45-
bundle exec ruby utils/devtool.rb misspell
46-
bundle exec ruby utils/devtool.rb rubocop
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Node
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: "16"
22+
- name: Set up Ruby
23+
uses: ruby/setup-ruby@v1
24+
- name: Set up Rust nightly
25+
run: |
26+
rustup component add clippy
27+
- name: Set up Bundler
28+
run: |
29+
gem install bundler
30+
bundle config set without 'uart'
31+
bundle install --retry 3
32+
- name: Set up Prettier
33+
run: |
34+
npm install prettier
35+
- name: Setup misspell
36+
run: |
37+
curl -L -o ./install-misspell.sh https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh
38+
sh ./install-misspell.sh -b .vendor
39+
- name: Run checks
40+
run: |
41+
BSP=rpi3 bundle exec ruby utils/devtool.rb clippy
42+
BSP=rpi4 bundle exec ruby utils/devtool.rb clippy
43+
bundle exec ruby utils/devtool.rb copyright
44+
bundle exec ruby utils/devtool.rb fmt_check
45+
bundle exec ruby utils/devtool.rb misspell
46+
bundle exec ruby utils/devtool.rb rubocop
+34-34
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
name: Integration-Tests
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
paths-ignore:
8-
- "utils/**"
9-
- "doc/**"
10-
- "docker/**"
11-
pull_request:
12-
branches:
13-
- master
14-
paths-ignore:
15-
- "utils/**"
16-
- "doc/**"
17-
- "docker/**"
18-
schedule:
19-
- cron: "0 5 * * *"
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- "utils/**"
9+
- "doc/**"
10+
- "docker/**"
11+
pull_request:
12+
branches:
13+
- master
14+
paths-ignore:
15+
- "utils/**"
16+
- "doc/**"
17+
- "docker/**"
18+
schedule:
19+
- cron: "0 5 * * *"
2020

2121
jobs:
22-
build:
23-
name: Run integration tests
24-
runs-on: ubuntu-22.04
22+
build:
23+
name: Run integration tests
24+
runs-on: ubuntu-22.04
2525

26-
steps:
27-
- uses: actions/checkout@v3
28-
- name: Set up Ruby
29-
uses: ruby/setup-ruby@v1
30-
- name: Set up Rust nightly
31-
run: |
32-
cargo install cargo-binutils rustfilt
33-
- name: Set up Ruby
34-
run: |
35-
gem install bundler
36-
bundle config set without 'uart'
37-
bundle install --retry 3
38-
- name: Run
39-
run: |
40-
bundle exec ruby utils/devtool.rb test_integration
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Set up Ruby
29+
uses: ruby/setup-ruby@v1
30+
- name: Set up Rust nightly
31+
run: |
32+
cargo install cargo-binutils rustfilt
33+
- name: Set up Ruby
34+
run: |
35+
gem install bundler
36+
bundle config set without 'uart'
37+
bundle install --retry 3
38+
- name: Run
39+
run: |
40+
bundle exec ruby utils/devtool.rb test_integration

0 commit comments

Comments
 (0)