From 0ba4d2eaeeb1f397edaea06f0cfd1ca5399e4d69 Mon Sep 17 00:00:00 2001 From: Marius Greuel Date: Wed, 12 Jan 2022 17:25:00 +0100 Subject: [PATCH] Change GitHub build action to create separate artifacts for executables --- .github/workflows/build.yml | 54 ++++++++++++++++++++++++++++++++---- .github/workflows/deploy.yml | 8 +++--- 2 files changed, 53 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 81203501..8e0466cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,6 +51,8 @@ jobs: run: >- cmake -D DEBUG_CMAKE=1 + -D HAVE_LINUXGPIO=1 + -D HAVE_LINUXSPI=1 -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -B ../build - name: Build @@ -59,11 +61,18 @@ jobs: if: always() uses: actions/upload-artifact@v2 with: - name: linux-x86_64 + name: build-linux-x86_64 path: | build/ !**/*.d !**/*.o + - name: Archive executables + uses: actions/upload-artifact@v2 + with: + name: avrdude-linux-x86_64 + path: | + build/avrdude + build/avrdude.conf linux: runs-on: ubuntu-latest @@ -101,6 +110,8 @@ jobs: run: >- cmake -D DEBUG_CMAKE=1 + -D HAVE_LINUXGPIO=1 + -D HAVE_LINUXSPI=1 -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -D CMAKE_SYSTEM_NAME=Linux -D CMAKE_SYSTEM_PROCESSOR=${{matrix.processor}} @@ -115,11 +126,18 @@ jobs: if: always() uses: actions/upload-artifact@v2 with: - name: linux-${{matrix.processor}} + name: build-linux-${{matrix.processor}} path: | build/ !**/*.d !**/*.o + - name: Archive executables + uses: actions/upload-artifact@v2 + with: + name: avrdude-linux-${{matrix.processor}} + path: | + build/avrdude + build/avrdude.conf macos-x86_64: runs-on: macos-latest @@ -152,11 +170,18 @@ jobs: if: always() uses: actions/upload-artifact@v2 with: - name: macos-x86_64 + name: build-macos-x86_64 path: | build/ !**/*.d !**/*.o + - name: Archive executables + uses: actions/upload-artifact@v2 + with: + name: avrdude-macos-x86_64 + path: | + build/avrdude + build/avrdude.conf msvc: runs-on: windows-latest @@ -196,11 +221,23 @@ jobs: if: always() uses: actions/upload-artifact@v2 with: - name: msvc-${{matrix.arch}} + name: build-msvc-${{matrix.arch}} path: | build/ !**/_deps/ !**/*.obj + - name: Move executables + run: | + mv ../build/RelWithDebInfo/avrdude.exe ../build + mv ../build/RelWithDebInfo/avrdude.pdb ../build + - name: Archive executables + uses: actions/upload-artifact@v2 + with: + name: avrdude-msvc-${{matrix.arch}} + path: | + build/avrdude.exe + build/avrdude.pdb + build/avrdude.conf mingw: runs-on: windows-latest @@ -241,6 +278,13 @@ jobs: if: always() uses: actions/upload-artifact@v2 with: - name: mingw-${{matrix.env}} + name: build-mingw-${{matrix.env}} path: | build/ + - name: Archive executables + uses: actions/upload-artifact@v2 + with: + name: avrdude-mingw-${{matrix.env}} + path: | + build/avrdude.exe + build/avrdude.conf diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f486cec8..cae55264 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,7 +41,7 @@ jobs: with: tag_name: ${{github.ref}} release_name: AVRDUDE ${{github.ref}} - body: "**[Release Notes:](https://github.com/avrdudes/avrdude/blob/main/NEWS)**" + body: "See **[Release Notes](https://github.com/avrdudes/avrdude/blob/main/NEWS)** for changes" draft: false prerelease: false @@ -58,13 +58,13 @@ jobs: - name: Download artifact uses: actions/download-artifact@v2 with: - name: msvc-${{matrix.arch}} + name: avrdude-msvc-${{matrix.arch}} - name: Create release asset run: >- zip -j asset.zip - RelWithDebInfo/avrdude.exe - RelWithDebInfo/avrdude.pdb + avrdude.exe + avrdude.pdb avrdude.conf - name: Upload release asset