diff options
author | Marvin Borner | 2021-05-23 14:30:07 +0200 |
---|---|---|
committer | Marvin Borner | 2021-05-23 14:34:52 +0200 |
commit | 33fd97e19a12535c02b1cf6804cb854a279e040c (patch) | |
tree | 0ea00a9b60b35e42830eb3b13887fea2d356d655 /.github/workflows | |
parent | 0bf64a113f3d3baa110b362fd6a215ef29182671 (diff) |
Cleanup, linting, formatting
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/main.yml (renamed from .github/workflows/build.yml) | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/main.yml index cb9660e..3984c6e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,23 @@ -name: Project build and test +name: lint, build, test, release on: push jobs: - build-and-test: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install + run: sudo apt-get update && sudo apt-get install -y build-essential ctags ccache clang-tidy-11 clang-format-11 + - name: Generate linting instructions + run: sh run sync + - name: Lint + run: sh run lint + + build-test-release: + needs: [lint] runs-on: ubuntu-latest steps: @@ -16,7 +30,7 @@ jobs: uses: actions/cache@v1 with: path: cross - key: toolchain + key: cached-toolchain - name: Build cross compiler if: steps.cache-cross.outputs.cache-hit != 'true' run: sh run cross -y |