Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Release build (#24)
Browse files Browse the repository at this point in the history
* Try this release stuff.

* Add everything else to the release party.

* Archim platformio build too.

* Get rid of globs.

* Try another name.

* Create the release zip ourselves.

* Minor nit.

* Big jump in version.
  • Loading branch information
jeffeb3 authored Jul 30, 2020
1 parent 00a5ff7 commit c265338
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 16 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/archim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- src/configs/V1*Ramps*
- src/configs/V1*Skr*
- '**/*.md'
release:
types:
- created

jobs:
build-platform-io:
Expand Down Expand Up @@ -79,13 +82,24 @@ jobs:
run: |
src/core/zip-marlin
- name: Upload
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.machine }}-${{ matrix.branch }}
path: |
firmware_*
Marlin*.zip
Marlin_*.zip
- name: Upload Marlin-${{ matrix.machine }}-${{ matrix.branch }}-src.zip to release
if: ${{ github.event_name == 'release' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: Marlin-Release.zip
asset_name: ${{ matrix.machine }}-${{ matrix.branch }}-src.zip
asset_content_type: application/zip

build-arduino:

Expand Down Expand Up @@ -135,7 +149,7 @@ jobs:
run: |
src/core/config-for-machine ${{ matrix.machine }}
- name: Build
- name: Build Arduino
uses: ArminJo/arduino-test-compile@v2
with:
sketch-names: Marlin.ino
Expand All @@ -151,10 +165,22 @@ jobs:
run: |
src/core/zip-marlin
- name: Upload
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.machine }}-${{ matrix.branch }}
path: |
firmware_*
Marlin*.zip
Marlin_*.zip
- name: Upload Marlin-${{ matrix.machine }}-${{ matrix.branch }}-src.zip to release
if: ${{ github.event_name == 'release' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: Marlin-Release.zip
asset_name: ${{ matrix.machine }}-${{ matrix.branch }}-src.zip
asset_content_type: application/zip

19 changes: 16 additions & 3 deletions .github/workflows/rambo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- src/configs/V1*Ramps*
- src/configs/V1*Skr*
- '**/*.md'
release:
types:
- created

jobs:
build:
Expand All @@ -39,7 +42,6 @@ jobs:
- V1CNC_Rambo
- V1CNC_Rambo_Dual
- V1CNC_Rambo_DualLR
- V1CNC_Ramps_Dual
- V1ZXY_MiniRambo

steps:
Expand Down Expand Up @@ -96,10 +98,21 @@ jobs:
run: |
src/core/zip-marlin
- name: Upload
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.machine }}-${{ matrix.branch }}
path: |
firmware_*
Marlin*.zip
Marlin_*.zip
- name: Upload Marlin-${{ matrix.machine }}-${{ matrix.branch }}-src.zip to release
if: ${{ github.event_name == 'release' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: Marlin-Release.zip
asset_name: ${{ matrix.machine }}-${{ matrix.branch }}-src.zip
asset_content_type: application/zip
19 changes: 17 additions & 2 deletions .github/workflows/ramps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- src/configs/V1*Skr*
- src/configs/V1*Rambo*
- '**/*.md'
release:
types:
- created

jobs:
build:
Expand All @@ -36,6 +39,7 @@ jobs:
machine:
- V13DP_Ramps_MK8
- V1ZXY_Ramps
- V1CNC_Ramps_Dual

steps:

Expand Down Expand Up @@ -88,10 +92,21 @@ jobs:
run: |
src/core/zip-marlin
- name: Upload
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.machine }}-${{ matrix.branch }}
path: |
firmware_*
Marlin*.zip
Marlin_*.zip
- name: Upload Marlin-${{ matrix.machine }}-${{ matrix.branch }}-src.zip to release
if: ${{ github.event_name == 'release' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: Marlin-Release.zip
asset_name: ${{ matrix.machine }}-${{ matrix.branch }}-src.zip
asset_content_type: application/zip
18 changes: 16 additions & 2 deletions .github/workflows/skr1p3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:
- src/configs/V1*Ramps*
- src/configs/V1*SkrPro*
- '**/*.md'
release:
types:
- created

jobs:
build:
Expand Down Expand Up @@ -83,10 +86,21 @@ jobs:
run: |
src/core/zip-marlin
- name: Upload
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.machine }}-${{ matrix.branch }}
path: |
firmware_*
Marlin*.zip
Marlin_*.zip
- name: Upload Marlin-${{ matrix.machine }}-${{ matrix.branch }}-src.zip to release
if: ${{ github.event_name == 'release' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: Marlin-Release.zip
asset_name: ${{ matrix.machine }}-${{ matrix.branch }}-src.zip
asset_content_type: application/zip
18 changes: 16 additions & 2 deletions .github/workflows/skrpro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:
- src/configs/V1*Ramps*
- src/configs/V1*Skr1p3*
- '**/*.md'
release:
types:
- created

jobs:
build:
Expand Down Expand Up @@ -80,10 +83,21 @@ jobs:
run: |
src/core/zip-marlin
- name: Upload
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.machine }}-${{ matrix.branch }}
path: |
firmware_*
Marlin*.zip
Marlin_*.zip
- name: Upload Marlin-${{ matrix.machine }}-${{ matrix.branch }}-src.zip to release
if: ${{ github.event_name == 'release' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: Marlin-Release.zip
asset_name: ${{ matrix.machine }}-${{ matrix.branch }}-src.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion src/core/version
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Set up the custom version strings here.

export V1_VERSION=430
export V1_VERSION=500
export MARLIN_VERSION="${MARLIN_VERSION:-Custom}"
export CONFIG_NAME="${CONFIG_NAME:-ConfigUnknown}"

Expand Down
3 changes: 2 additions & 1 deletion src/core/zip-marlin
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ zip -prq "Marlin_${CONFIG_NAME}_${MARLIN_VERSION}_${V1_VERSION}"-src.zip "$short
# It's ok if these fail
mv firmware.bin "firmware_${CONFIG_NAME}_${MARLIN_VERSION}_${V1_VERSION}.bin" || echo "No bin file found"
mv firmware.hex "firmware_${CONFIG_NAME}_${MARLIN_VERSION}_${V1_VERSION}.hex" || echo "No hex file found"
mv Marlin.ino.bin "firmware_${CONFIG_NAME}_${MARLIN_VERSION}_${V1_VERSION}.bin" || echo "No Marlin bin file found"

zip -prq Marlin-Release.zip "Marlin_${CONFIG_NAME}_${MARLIN_VERSION}_${V1_VERSION}"-src.zip firmware_*

0 comments on commit c265338

Please sign in to comment.