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