mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 22:15:41 +00:00
23 lines
673 B
YAML
23 lines
673 B
YAML
name: ci_formatting
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: updating available system dependencies
|
|
run: sudo apt-get update
|
|
- name: installing system dependencies
|
|
run: sudo apt-get install -y build-essential pkg-config automake clang-format-5.0
|
|
- name: creating autoconf files
|
|
run: ./init.sh
|
|
- name: configuring
|
|
run: ./configure CFLAGS='-O0 -g -Wall -Wextra'
|
|
# Changing the path should no longer be necessary when clang-format6 is installed.
|
|
- name: verifying code style
|
|
run: export PATH=$PATH:/usr/lib/llvm-5.0/bin && make check-format
|