Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jodygarnett committed Jul 23, 2024
1 parent 1148190 commit 4074d1e
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Linux QA GitHub CI

on: [pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN

jobs:
build:
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
- name: Maven repository caching
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: mf-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
gt-maven-
- name: Disable checksum offloading
# See: https://github.com/actions/virtual-environments/issues/1187#issuecomment-686735760
run: sudo ethtool -K eth0 tx off rx off
- name: Build with Maven
run: |
mvn -B -fae clean install
- name: Remove SNAPSHOT jars from repository
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}
31 changes: 31 additions & 0 deletions .github/workflows/docs-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: publish docs

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Setup python for docs
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip' # caching pip dependencies from requirements.txt below
- name: Setup python pip requirements for building docs
working-directory: docs
run: |
pip install -r requirements.txt
- name: builds docs
shell: bash
working-directory: docs
run: |
sphinx-build -b html -d _build/doctrees . _build/html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
27 changes: 27 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build docs

on: [pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Setup python for docs
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip' # caching pip dependencies from requirements.txt below
- name: Setup python pip requirements for building docs
working-directory: docs
run: |
pip install -r requirements.txt
- name: builds docs
shell: bash
working-directory: docs
run: |
sphinx-build -b html -d _build/doctrees . _build/html

0 comments on commit 4074d1e

Please sign in to comment.