From 371b9baf15c92f0082f11476291165d628b2b03e Mon Sep 17 00:00:00 2001 From: Sourabh Mehta Date: Wed, 14 Aug 2024 14:33:34 +0200 Subject: [PATCH] Test bin archieve --- .github/workflows/nightly.yml | 36 +++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 74feb97..9b4b884 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -121,12 +121,36 @@ jobs: run: | GOOS=${{ matrix.target }} GOARCH=${{ matrix.arch }} go build -ldflags "-X main.version=$(git describe --tags)" -o build/cbuild2cmake${{ matrix.binary_extension }} ./cmd/cbuild2cmake + # Download and build cbridge executable + - name: Checkout cbridge repository + uses: actions/checkout@v4 + with: + repository: Open-CMSIS-PACK/generator-bridge + path: cbridge + fetch-depth: 0 + + # - name: Install Go + # uses: actions/setup-go@v5 + # with: + # go-version-file: generator-bridge/go.mod + # cache-dependency-path: | + # **/go.mod + # **/go.sum + + - name: Build cbridge executable + working-directory: cbridge + shell: bash + run: | + GOOS=${{ matrix.target }} GOARCH=${{ matrix.arch }} go build -ldflags "-X main.version=$(git describe --tags)" -o build/cbridge${{ matrix.binary_extension }} ./cmd + # Download projmgr and cbuildgen from nightly - name: Download Open-CMSIS-Pack/devtools nightly artifacts shell: bash run : | gh run download -D projmgr-${{ matrix.target }}-${{ matrix.arch }} ${{ steps.get_run_id.outputs.NIGHTLY_RUN_ID }} -n projmgr-${{ matrix.target }}-${{ matrix.arch }} -R Open-CMSIS-Pack/devtools gh run download -D cbuildgen-${{ matrix.target }}-${{ matrix.arch }} ${{ steps.get_run_id.outputs.NIGHTLY_RUN_ID }} -n cbuildgen-${{ matrix.target }}-${{ matrix.arch }} -R Open-CMSIS-Pack/devtools + gh run download -D packchk-${{ matrix.target }}-${{ matrix.arch }} ${{ steps.get_run_id.outputs.NIGHTLY_RUN_ID }} -n packchk-${{ matrix.target }}-${{ matrix.arch }} -R Open-CMSIS-Pack/devtools + gh run download -D svdconv-${{ matrix.target }}-${{ matrix.arch }} ${{ steps.get_run_id.outputs.NIGHTLY_RUN_ID }} -n svdconv-${{ matrix.target }}-${{ matrix.arch }} -R Open-CMSIS-Pack/devtools - name: Checkout cmsis-toolbox repo uses: actions/checkout@v4 @@ -140,10 +164,14 @@ jobs: mkdir -p ./cmsis-toolbox/bin mkdir -p ./cmsis-toolbox/etc cp ./projmgr-${{ matrix.target }}-${{ matrix.arch }}/csolution${{ matrix.binary_extension }} ./cmsis-toolbox/bin/csolution${{ matrix.binary_extension }} - cp ./cbuildgen-${{ matrix.target }}-${{ matrix.arch }}/cbuildgen${{ matrix.binary_extension }}* ./cmsis-toolbox/bin/cbuildgen${{ matrix.binary_extension }} - cp ./cbuild/build/cbuild${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cbuild${{ matrix.binary_extension }} - cp ./cpackget/build/cpackget${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cpackget${{ matrix.binary_extension }} - cp ./cbuild2cmake/build/cbuild2cmake${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cbuild2cmake${{ matrix.binary_extension }} + cp ./cbuildgen-${{ matrix.target }}-${{ matrix.arch }}/cbuildgen${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cbuildgen${{ matrix.binary_extension }} + cp ./packchk-${{ matrix.target }}-${{ matrix.arch }}/*/packchk${{ matrix.binary_extension }} ./cmsis-toolbox/bin/packchk${{ matrix.binary_extension }} + cp ./svdconv-${{ matrix.target }}-${{ matrix.arch }}/*/svdconv${{ matrix.binary_extension }} ./cmsis-toolbox/bin/svdconv${{ matrix.binary_extension }} + cp ./cbuild/build/cbuild${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cbuild${{ matrix.binary_extension }} + cp ./cpackget/build/cpackget${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cpackget${{ matrix.binary_extension }} + cp ./cbuild2cmake/build/cbuild2cmake${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cbuild2cmake${{ matrix.binary_extension }} + cp ./cbridge/build/cbridge${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cbridge${{ matrix.binary_extension }} + cp ./cbridge/scripts/MCUXpresso_Config_Tools/${{ matrix.target }}-${{ matrix.arch }}/launch-MCUXpressoConfigTools* ./cmsis-toolbox/bin/ cp -r devtools/tools/projmgr/templates/* ./cmsis-toolbox/etc cp -r devtools/tools/projmgr/schemas/* ./cmsis-toolbox/etc cp -r devtools/tools/buildmgr/cbuildgen/scripts/* ./cmsis-toolbox/etc