Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build-marlin.yml to use correct folder names #694

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/build-marlin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: MarlinFirmware/Marlin
ref: 2.0.9.4
ref: 2.0.9.8
path: Marlin
fetch-depth: 1
lfs: 'true'
Expand All @@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: MarlinFirmware/Configurations
ref: 2.0.9.4
ref: 2.0.9.8
path: Marlin-Configurations

- name: Cache pip
Expand Down Expand Up @@ -61,32 +61,32 @@ jobs:

- name: Copy index configuration files
run: |
cp ./Marlin-Configurations/config/examples/Index/REV_03/Configuration.h ./Marlin/Marlin/
cp ./Marlin-Configurations/config/examples/Index/REV_03/Configuration_adv.h ./Marlin/Marlin/
cp ./Marlin-Configurations/config/examples/Opulo/Lumen_REV3/Configuration.h ./Marlin/Marlin/
cp ./Marlin-Configurations/config/examples/Opulo/Lumen_REV3/Configuration_adv.h ./Marlin/Marlin/

- name: Ensure Experimental I2C is Enabled
run: |
sed -i 's/\/\/#define EXPERIMENTAL_I2CBUS/#define EXPERIMENTAL_I2CBUS/' ./Marlin/Marlin/Configuration_adv.h


- name: Build code for Marlin
run: pio run --project-dir=./Marlin --project-conf=./Marlin/platformio.ini -e Index_Mobo_Rev03
run: pio run --project-dir=./Marlin --project-conf=./Marlin/platformio.ini -e Opulo_Lumen_REV3

- name: Get current date
id: date
run: echo "dt=$(date +'%Y-%m-%d-%H-%M')" >> $GITHUB_ENV

- name: Rename firmware file using todays date
run: mv ./Marlin/.pio/build/Index_Mobo_Rev03/firmware.bin ./Marlin/.pio/build/Index_Mobo_Rev03/index_mobo_v3_marlin_firmware_${{ env.dt }}.bin
run: mv ./Marlin/.pio/build/Opulo_Lumen_REV3/firmware.bin ./Marlin/.pio/build/Opulo_Lumen_REV3/index_mobo_v3_marlin_firmware_${{ env.dt }}.bin
stuartpittaway marked this conversation as resolved.
Show resolved Hide resolved

- uses: actions/upload-artifact@v3
with:
name: LumenPnP_Mobo_REV3-1_Marlin_Firmware_${{ env.dt }}
path: ./Marlin/.pio/build/Index_Mobo_Rev03/*.bin
path: ./Marlin/.pio/build/Opulo_Lumen_REV3/*.bin

- name: Upload Artifacts to Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'release'
with:
files: |
./Marlin/.pio/build/Index_Mobo_Rev03/*.bin
./Marlin/.pio/build/Opulo_Lumen_REV3/*.bin