Moving formatting to a new GH action.

This commit is contained in:
louib
2020-06-14 14:03:57 -04:00
parent cbe1d83801
commit 69d6d9708c
3 changed files with 24 additions and 8 deletions

22
.github/workflows/ci_formatting.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
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

View File

@@ -12,13 +12,10 @@ jobs:
- 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 libncurses5-dev autotools-dev libparted-dev dmidecode clang-format-5.0
run: sudo apt-get install -y build-essential pkg-config automake libncurses5-dev autotools-dev libparted-dev dmidecode
- name: creating autoconf files
run: ./init.sh
- name: configuring
run: ./configure CFLAGS='-O0 -g -Wall -Wextra'
- name: compiling
run: make
# 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

View File

@@ -12,13 +12,10 @@ jobs:
- 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 libncurses5-dev autotools-dev libparted-dev dmidecode clang-format-5.0
run: sudo apt-get install -y build-essential pkg-config automake libncurses5-dev autotools-dev libparted-dev dmidecode
- name: creating autoconf files
run: ./init.sh
- name: configuring
run: ./configure CFLAGS='-O0 -g -Wall -Wextra'
- name: compiling
run: make
# 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