Change GitHub build action to create separate artifacts for executables
This commit is contained in:
parent
1faa02b9cb
commit
0ba4d2eaee
|
@ -51,6 +51,8 @@ jobs:
|
||||||
run: >-
|
run: >-
|
||||||
cmake
|
cmake
|
||||||
-D DEBUG_CMAKE=1
|
-D DEBUG_CMAKE=1
|
||||||
|
-D HAVE_LINUXGPIO=1
|
||||||
|
-D HAVE_LINUXSPI=1
|
||||||
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
-B ../build
|
-B ../build
|
||||||
- name: Build
|
- name: Build
|
||||||
|
@ -59,11 +61,18 @@ jobs:
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: linux-x86_64
|
name: build-linux-x86_64
|
||||||
path: |
|
path: |
|
||||||
build/
|
build/
|
||||||
!**/*.d
|
!**/*.d
|
||||||
!**/*.o
|
!**/*.o
|
||||||
|
- name: Archive executables
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: avrdude-linux-x86_64
|
||||||
|
path: |
|
||||||
|
build/avrdude
|
||||||
|
build/avrdude.conf
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -101,6 +110,8 @@ jobs:
|
||||||
run: >-
|
run: >-
|
||||||
cmake
|
cmake
|
||||||
-D DEBUG_CMAKE=1
|
-D DEBUG_CMAKE=1
|
||||||
|
-D HAVE_LINUXGPIO=1
|
||||||
|
-D HAVE_LINUXSPI=1
|
||||||
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
-D CMAKE_SYSTEM_NAME=Linux
|
-D CMAKE_SYSTEM_NAME=Linux
|
||||||
-D CMAKE_SYSTEM_PROCESSOR=${{matrix.processor}}
|
-D CMAKE_SYSTEM_PROCESSOR=${{matrix.processor}}
|
||||||
|
@ -115,11 +126,18 @@ jobs:
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: linux-${{matrix.processor}}
|
name: build-linux-${{matrix.processor}}
|
||||||
path: |
|
path: |
|
||||||
build/
|
build/
|
||||||
!**/*.d
|
!**/*.d
|
||||||
!**/*.o
|
!**/*.o
|
||||||
|
- name: Archive executables
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: avrdude-linux-${{matrix.processor}}
|
||||||
|
path: |
|
||||||
|
build/avrdude
|
||||||
|
build/avrdude.conf
|
||||||
|
|
||||||
macos-x86_64:
|
macos-x86_64:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
@ -152,11 +170,18 @@ jobs:
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: macos-x86_64
|
name: build-macos-x86_64
|
||||||
path: |
|
path: |
|
||||||
build/
|
build/
|
||||||
!**/*.d
|
!**/*.d
|
||||||
!**/*.o
|
!**/*.o
|
||||||
|
- name: Archive executables
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: avrdude-macos-x86_64
|
||||||
|
path: |
|
||||||
|
build/avrdude
|
||||||
|
build/avrdude.conf
|
||||||
|
|
||||||
msvc:
|
msvc:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -196,11 +221,23 @@ jobs:
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: msvc-${{matrix.arch}}
|
name: build-msvc-${{matrix.arch}}
|
||||||
path: |
|
path: |
|
||||||
build/
|
build/
|
||||||
!**/_deps/
|
!**/_deps/
|
||||||
!**/*.obj
|
!**/*.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:
|
mingw:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -241,6 +278,13 @@ jobs:
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: mingw-${{matrix.env}}
|
name: build-mingw-${{matrix.env}}
|
||||||
path: |
|
path: |
|
||||||
build/
|
build/
|
||||||
|
- name: Archive executables
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: avrdude-mingw-${{matrix.env}}
|
||||||
|
path: |
|
||||||
|
build/avrdude.exe
|
||||||
|
build/avrdude.conf
|
||||||
|
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
tag_name: ${{github.ref}}
|
tag_name: ${{github.ref}}
|
||||||
release_name: AVRDUDE ${{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
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
@ -58,13 +58,13 @@ jobs:
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: msvc-${{matrix.arch}}
|
name: avrdude-msvc-${{matrix.arch}}
|
||||||
|
|
||||||
- name: Create release asset
|
- name: Create release asset
|
||||||
run: >-
|
run: >-
|
||||||
zip -j asset.zip
|
zip -j asset.zip
|
||||||
RelWithDebInfo/avrdude.exe
|
avrdude.exe
|
||||||
RelWithDebInfo/avrdude.pdb
|
avrdude.pdb
|
||||||
avrdude.conf
|
avrdude.conf
|
||||||
|
|
||||||
- name: Upload release asset
|
- name: Upload release asset
|
||||||
|
|
Loading…
Reference in New Issue