Skip to content

Commit 75b25c6

Browse files
committed
update CI to use OpenHarmony-v4.1-Beta1
1 parent 018064a commit 75b25c6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/bench-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
timeout_minutes: 5
2828
max_attempts: 3
2929
retry_on: error
30-
command: git clone https://gitee.com/openharmony/${{ matrix.project }}.git
30+
command: git clone --branch OpenHarmony-v4.1-Beta1 https://gitee.com/openharmony/${{ matrix.project }}.git
3131

3232
- name: Cache Cargo dependencies and binaries
3333
uses: actions/cache@v4
@@ -43,13 +43,13 @@ jobs:
4343
- name: prepare repository for dylint
4444
working-directory: ./${{ matrix.project }}
4545
run: |
46-
curl -o prepare_repo.sh https://raw.githubusercontent.com/trusted-programming/mate/${GITHUB_REF##*/}/scripts/prepare_repo.sh
46+
curl -o prepare_repo.sh https://raw.githubusercontent.com/trusted-programming/mate/main/scripts/prepare_repo.sh
4747
bash prepare_repo.sh
4848
4949
- name: count occurrences before
5050
working-directory: ./${{ matrix.project }}
5151
run: |
52-
curl -o counters.sh https://raw.githubusercontent.com/trusted-programming/mate/${GITHUB_REF##*/}/scripts/counters.sh
52+
curl -o counters.sh https://raw.githubusercontent.com/trusted-programming/mate/main/scripts/counters.sh
5353
bash counters.sh before
5454
5555
- name: Lint fix (run 5 times)

scripts/counters.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ echo
88
echo "### FILE OUTPUT ###"
99
echo
1010

11-
if ! dylint_output=$(cargo dylint --workspace --all 2>&1); then
12-
echo "Error running cargo dylint" >&2
13-
exit 1
14-
fi
11+
dylint_output=$(cargo dylint --workspace --all -- --exclude tests --exclude benches 2>&1)
1512

1613
echo "$dylint_output"
1714
echo

0 commit comments

Comments
 (0)