Skip to content

Commit

Permalink
build: add artifacts to manual build action
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Sep 7, 2022
1 parent 15637a2 commit 9fafe69
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:

release_job:
name: Create release
if: github.event_name == 'push'
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
Expand All @@ -53,6 +54,7 @@ jobs:

build_mingw_job:
needs: release_job
if: ${{ needs.release_job.result != 'failure' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -81,6 +83,11 @@ jobs:
asset_path: rtl_433-win-x64.zip
asset_name: rtl_433-win-x64-${{ needs.release_job.outputs.release_version }}.zip
asset_content_type: application/zip
- uses: actions/upload-artifact@v3
if: matrix.arch == 'x86-64' && github.event_name != 'push'
with:
name: rtl_433-win-x64.zip
path: rtl_433-win-x64.zip
- uses: actions/upload-release-asset@v1
if: matrix.arch == 'x86-64' && github.event_name == 'push'
env:
Expand All @@ -90,9 +97,15 @@ jobs:
asset_path: rtl_433-win-x32.zip
asset_name: rtl_433-win-x32-${{ needs.release_job.outputs.release_version }}.zip
asset_content_type: application/zip
- uses: actions/upload-artifact@v3
if: matrix.arch == 'x86-64' && github.event_name != 'push'
with:
name: rtl_433-win-x32.zip
path: rtl_433-win-x32.zip

build_msvc_job:
needs: [downloads_job, release_job]
if: ${{ needs.downloads_job.result != 'failure' && needs.release_job.result != 'failure' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -192,6 +205,11 @@ jobs:
asset_path: ${{ runner.workspace }}/rtl_433-win-msvc-x64.zip
asset_name: rtl_433-win-msvc-x64-${{ needs.release_job.outputs.release_version }}.zip
asset_content_type: application/zip
- uses: actions/upload-artifact@v3
if: matrix.os == 'windows-2019' && matrix.platform == 'x64' && github.event_name != 'push'
with:
name: rtl_433-win-msvc-x64.zip
path: ${{ runner.workspace }}/rtl_433-win-msvc-x64.zip

build_linux_job:
strategy:
Expand Down

0 comments on commit 9fafe69

Please sign in to comment.