From 78172cdd612f1fe34272ad203eb1e983b375f886 Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Tue, 13 Sep 2022 18:20:19 +0200 Subject: [PATCH] CI - Changed build workflow to compile release applications instead; remove the artifacts upload since they were not used --- .github/workflows/build-workflow.yml | 40 +++++++--------------------- 1 file changed, 9 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml index 0c9ef5f..54bd896 100644 --- a/.github/workflows/build-workflow.yml +++ b/.github/workflows/build-workflow.yml @@ -1,7 +1,6 @@ name: Compilation on: - workflow_dispatch: push: branches: - master @@ -9,19 +8,14 @@ on: branches: - master - develop + workflow_dispatch: jobs: - nano_debug_build: - name: Build debug application for NanoS, X and S+ + nano_release_build: + name: Build release application for NanoS, X and S+ strategy: matrix: - include: - - SDK: "$NANOS_SDK" - artifact: nanos - - SDK: "$NANOX_SDK" - artifact: nanox - - SDK: "$NANOSP_SDK" - artifact: nanosp + sdk: ["$NANOS_SDK", "$NANOX_SDK", "$NANOSP_SDK"] runs-on: ubuntu-latest container: image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest @@ -29,28 +23,12 @@ jobs: steps: - name: Clone uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Build an altcoin - run: | - make BOLOS_SDK=${{ matrix.SDK }} DEBUG=1 ALLOW_DATA=1 CHAIN=ethereum_classic - mv bin/app.elf ethereum_classic_${{ matrix.artifact }}.elf - - - name: Upload altcoin binary - uses: actions/upload-artifact@v2 - with: - name: ethereum_classic_${{ matrix.artifact }} - path: ./ethereum_classic_${{ matrix.artifact }}.elf - name: Build Ethereum run: | - make clean - make BOLOS_SDK=${{ matrix.SDK }} DEBUG=1 ALLOW_DATA=1 - mv bin/app.elf ethereum_${{ matrix.artifact }}.elf + make -j BOLOS_SDK=${{ matrix.sdk }} - - name: Upload app binary - uses: actions/upload-artifact@v2 - with: - name: ethereum_${{ matrix.artifact }} - path: ./ethereum_${{ matrix.artifact }}.elf \ No newline at end of file + - name: Build an altcoin + run: | + make clean + make -j BOLOS_SDK=${{ matrix.sdk }} CHAIN=polygon