mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
27 lines
1.2 KiB
YAML
27 lines
1.2 KiB
YAML
name: CI_on_ubuntu-16.04
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
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 libncurses5-dev autotools-dev libparted-dev dmidecode clang-format-5.0
|
|
- 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
|
|
# TODO use check-format when all the code has been formatted.
|
|
# run: export PATH=$PATH:/usr/lib/llvm-5.0/bin && make check-format
|
|
run: export PATH=$PATH:/usr/lib/llvm-5.0/bin && clang-format -i -style=file src/context.h src/device.h src/device.c src/mt19937ar-cok.h src/mt19937ar-cok.c src/isaac_rand.c src/isaac_rand.h src/isaac_standard.h src/nwipe.c src/nwipe.h src/options.c src/options.h src/version.h src/version.c src/method.h src/method.c src/pass.c src/pass.h src/prng.c src/prng.h && git diff-index --quiet HEAD
|