diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000000..430657bd85 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,21 @@ +name: documentation +on: + push: + branches: + - master + paths: + - 'doc/*' + +jobs: + build: + continue-on-error: true + runs-on: ubuntu-latest + container: "lammps/buildenv:fedora32_mingw" + steps: + - uses: actions/checkout@master + - name: Generate HTML + run: make -C doc -j 2 html + - name: Generate PDF + run: make -C doc -j 2 pdf + - name: Check Spelling + run: make -C doc -j 2 spelling diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml new file mode 100644 index 0000000000..8b9d55b22f --- /dev/null +++ b/.github/workflows/style.yml @@ -0,0 +1,42 @@ +name: style +on: + push: + branches: + - master + +jobs: + check_whitespace: + runs-on: ubuntu-latest + steps: + - name: Set up Python 3.6 + uses: actions/setup-python@v2 + with: + python-version: 3.6 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install --upgrade pyyaml + sudo apt install -y ninja-build + - uses: actions/checkout@master + - name: Configure + run: cmake -B build -G Ninja -D Python3_EXECUTABLE=$(which python) -S cmake + - name: Check for whitespace errors + run: cmake --build build --target check-whitespace + + check_permissions: + runs-on: ubuntu-latest + steps: + - name: Set up Python 3.6 + uses: actions/setup-python@v2 + with: + python-version: 3.6 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install --upgrade pyyaml + sudo apt install -y ninja-build + - uses: actions/checkout@master + - name: Configure + run: cmake -B build -G Ninja -D Python3_EXECUTABLE=$(which python) -S cmake + - name: Check file permissions + run: cmake --build build --target check-permissions