-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (45 loc) · 1.48 KB
/
Copy pathci.yml
File metadata and controls
55 lines (45 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
# Every branch push and PR; tags belong to release.yml.
# `'**'`, not `'*'`: only the doubled form matches the `/` in task branch names.
# Trap: a push naming only tags or tags-ignore never fires for branches.
on:
push:
branches:
- '**'
pull_request:
# Cancels a superseded push; the push/PR pair lands in different groups.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
defaults:
run:
# Explicit, since the default is bash -e without pipefail.
shell: bash
jobs:
# Lints scripts/ with shellcheck; tags skip this job but still run the scripts.
shellcheck:
name: shellcheck
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Check out
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Lint the shell scripts
run: shellcheck scripts/*.sh
clang-format:
name: clang-format
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Check out
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Pinned, so a new clang-format release cannot fail an untouched tree.
- name: Install clang-format
run: pipx install clang-format==20.1.8
- name: Check formatting
run: scripts/format.sh --check
# The matrix lives in build.yml (shared with release.yml); linux-armv6 is in build-armv6.yml.
build:
uses: ./.github/workflows/build.yml