Skip to content

Commit

Permalink
update CI to use OpenHarmony-v4.1-Beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
lucarlig committed Mar 8, 2024
1 parent 018064a commit c9565aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bench-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
timeout_minutes: 5
max_attempts: 3
retry_on: error
command: git clone https://gitee.com/openharmony/${{ matrix.project }}.git
command: git clone --branch OpenHarmony-v4.1-Beta1 https://gitee.com/openharmony/${{ matrix.project }}.git

- name: Cache Cargo dependencies and binaries
uses: actions/cache@v4
Expand All @@ -43,13 +43,13 @@ jobs:
- name: prepare repository for dylint
working-directory: ./${{ matrix.project }}
run: |
curl -o prepare_repo.sh https://raw.githubusercontent.com/trusted-programming/mate/${GITHUB_REF##*/}/scripts/prepare_repo.sh
curl -o prepare_repo.sh https://raw.githubusercontent.com/trusted-programming/mate/main/scripts/prepare_repo.sh
bash prepare_repo.sh
- name: count occurrences before
working-directory: ./${{ matrix.project }}
run: |
curl -o counters.sh https://raw.githubusercontent.com/trusted-programming/mate/${GITHUB_REF##*/}/scripts/counters.sh
curl -o counters.sh https://raw.githubusercontent.com/trusted-programming/mate/main/scripts/counters.sh
bash counters.sh before
- name: Lint fix (run 5 times)
Expand Down
5 changes: 1 addition & 4 deletions scripts/counters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ echo
echo "### FILE OUTPUT ###"
echo

if ! dylint_output=$(cargo dylint --workspace --all 2>&1); then
echo "Error running cargo dylint" >&2
exit 1
fi
dylint_output=$(cargo dylint --workspace --all -- --lib 2>&1)

echo "$dylint_output"
echo
Expand Down

0 comments on commit c9565aa

Please sign in to comment.