Add a minimal github action pipeline

This commit is contained in:
TamtamHero
2020-12-01 16:44:51 +01:00
parent 17bd07a346
commit 8e57f1d699
2 changed files with 55 additions and 0 deletions

36
.github/workflows/ci-workflow.yml vendored Normal file
View File

@@ -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

19
.github/workflows/lint-workflow.yml vendored Normal file
View File

@@ -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