Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@ indent_size = 4
[Brewfile]
indent_size = 4

[dep5]
indent_size = 1
[*.build]
indent_size = 4

[*.options]
indent_size = 4
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,22 @@
* text=auto

*.bazel text diff=python linguist-language=starlark whitespace-4
*.build text diff=python linguist-language=meson whitespace-4
*.cc text diff=cpp linguist-language=c++ whitespace-2
*.cff text linguist-documentation whitespace-2
*.cfg text whitespace-2
*.cmake text whitespace-2
*.cmake.in text whitespace-2
*.css text diff=css linguist-documentation whitespace=trailing-space
*.h text diff=cpp linguist-language=c++ whitespace-2
*.h.in text diff=cpp linguist-language=c++ whitespace-2
*.html text diff=html linguist-documentation whitespace=trailing-space
*.imp text linguist-language=json whitespace-2
*.json text whitespace-2
*.license text linguist-documentation whitespace-0
*.lock text linguist-generated
*.md text diff=markdown whitespace-md
*.options text diff=python linguist-language=meson whitespace-4
*.pc.in text whitespace-2
*.txt text
*.xml text
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/actions.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 96 additions & 0 deletions .github/workflows/meson-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
#
# meson-format.yml
# AVO2 Library
#
# SPDX-FileCopyrightText: 2010 University of North Carolina at Chapel Hill
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Please send all bug reports to <geom@cs.unc.edu>.
#
# The authors may be contacted via:
#
# Jur van den Berg, Jamie Snape, Stephen J. Guy, and Dinesh Manocha
# Dept. of Computer Science
# 201 S. Columbia St.
# Frederick P. Brooks, Jr. Computer Science Bldg.
# Chapel Hill, N.C. 27599-3175
# United States of America
#
# <https://gamma.cs.unc.edu/AVO/>
#

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
---
name: meson-format

on: # yamllint disable-line rule:truthy
push:
branches:
- main
paths:
- '**/meson.build'
- '**/meson.options'
- meson.format
- .github/workflows/meson-format.yml
pull_request:
branches:
- main
paths:
- '**/meson.build'
- '**/meson.options'
- meson.format
- .github/workflows/meson-format.yml
schedule:
- cron: '55 7 * * *'

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
meson-format:
name: meson-format
runs-on: ubuntu-latest
container: ubuntu:26.04
timeout-minutes: 20
steps:
- name: setup
run: |
apt-get -qq -o APT::Acquire::Retries=4 update \
|| (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update)
apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \
upgrade
apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \
--no-install-recommends install \
ca-certificates \
git \
meson
apt-get -qq -o Dpkg::Use-Pty=0 autoremove
rm -rf /var/lib/apt/lists/*
env:
DEBIAN_FRONTEND: noninteractive
shell: bash
- name: checkout
uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: meson format
run: |
shopt -s globstar nullglob
meson format --check-diff -- **/meson.build **/meson.options
shell: bash
Loading
Loading