From 8e57f1d699f641c4082f3b00432b6876fdd5556a Mon Sep 17 00:00:00 2001 From: TamtamHero <10632523+TamtamHero@users.noreply.github.com> Date: Tue, 1 Dec 2020 16:44:51 +0100 Subject: [PATCH] Add a minimal github action pipeline --- .github/workflows/ci-workflow.yml | 36 +++++++++++++++++++++++++++++ .github/workflows/lint-workflow.yml | 19 +++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/workflows/ci-workflow.yml create mode 100644 .github/workflows/lint-workflow.yml diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml new file mode 100644 index 0000000..aa826d1 --- /dev/null +++ b/.github/workflows/ci-workflow.yml @@ -0,0 +1,36 @@ +name: Compilation & tests + +on: [push, pull_request] + +jobs: + job_build_debug: + name: Build debug + runs-on: ubuntu-latest + + container: + image: docker://ledgerhq/ledger-app-builder:1.6.1-2 + + steps: + - name: Clone + uses: actions/checkout@v2 + + - name: Build an altcoin + run: | + make DEBUG=1 CHAIN=ethereum_classic + + - name: Upload altcoin binary + uses: actions/upload-artifact@v2 + with: + name: ethereum-classic-app-debug + path: bin + + - name: Build Ethereum + run: | + make clean + make DEBUG=1 + + - name: Upload app binary + uses: actions/upload-artifact@v2 + with: + name: ethereum-app-debug + path: bin diff --git a/.github/workflows/lint-workflow.yml b/.github/workflows/lint-workflow.yml new file mode 100644 index 0000000..6d07bc9 --- /dev/null +++ b/.github/workflows/lint-workflow.yml @@ -0,0 +1,19 @@ +name: Code style check + +on: [push, pull_request] + +jobs: + job_lint: + name: Lint + runs-on: ubuntu-latest + + steps: + - name: Clone + uses: actions/checkout@v2 + + - name: Lint + uses: DoozyX/clang-format-lint-action@v0.11 + with: + source: "./" + extensions: "h,c" + clangFormatVersion: 10