Skip to content

Commit 44f67e8

Browse files
committed
[CI] Require issues 'write' access for actions/labeler
1 parent 0a40b61 commit 44f67e8

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/ubuntu.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@ on:
22
workflow_call:
33

44
jobs:
5+
<<<<<<< Updated upstream
6+
=======
7+
pre-commit:
8+
runs-on: ubuntu-24.04
9+
if: github.event_name != 'push'
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
submodules: recursive
14+
fetch-depth: 0
15+
- name: Setup environment
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install --no-install-recommends -y \
19+
gcc-14 g++-14 ninja-build python3-pip clang-format-16
20+
python3 -m pip install -r requirements.txt
21+
- name: Run pre-commit checks
22+
run: |
23+
git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
24+
pre-commit run --from-ref ${{ github.base_ref }} --to-ref HEAD
25+
>>>>>>> Stashed changes
526
gcc-build:
627
runs-on: ${{ matrix.os }}
728
strategy:

0 commit comments

Comments
 (0)