mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-28 17:56:21 +02:00
github action test
This commit is contained in:
parent
17df96ed68
commit
72d678e32b
1 changed files with 34 additions and 14 deletions
48
.github/workflows/compile_development.yml
vendored
48
.github/workflows/compile_development.yml
vendored
|
@ -65,6 +65,13 @@ jobs:
|
|||
- name: Run PlatformIO
|
||||
run: pio run -d src -e ${{ matrix.variant }}
|
||||
|
||||
- name: Create Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ahoydtu_dev
|
||||
path: |
|
||||
src/firmware/*
|
||||
|
||||
build-de:
|
||||
needs: check
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -116,12 +123,25 @@ jobs:
|
|||
- name: Run PlatformIO
|
||||
run: pio run -d src -e ${{ matrix.variant }}
|
||||
|
||||
- name: Create Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ahoydtu_dev
|
||||
path: |
|
||||
src/firmware/*
|
||||
|
||||
deploy:
|
||||
needs: [build-en, build-de]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Copy boot_app0.bin
|
||||
run: cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin src/.pio/build/opendtufusion/ota.bin
|
||||
#- name: Copy boot_app0.bin
|
||||
# run: cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin src/.pio/build/opendtufusion/ota.bin
|
||||
|
||||
- name: Get Artifacts
|
||||
- uses: actions/download-artifact@master
|
||||
with:
|
||||
name: ahoydtu_dev
|
||||
path: src/firmware/*
|
||||
|
||||
- name: Rename Binary files
|
||||
id: rename-binary-files
|
||||
|
@ -135,18 +155,18 @@ jobs:
|
|||
env:
|
||||
VERSION: ${{ steps.rename-binary-files.outputs.name }}
|
||||
|
||||
- name: Create Manifest
|
||||
working-directory: src
|
||||
run: python ../scripts/buildManifest.py
|
||||
|
||||
- name: Create Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ahoydtu_dev
|
||||
path: |
|
||||
src/firmware/*
|
||||
src/User_Manual.md
|
||||
src/install.html
|
||||
# - name: Create Manifest
|
||||
# working-directory: src
|
||||
# run: python ../scripts/buildManifest.py
|
||||
#
|
||||
# - name: Create Artifact
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: ahoydtu_dev
|
||||
# path: |
|
||||
# src/firmware/*
|
||||
# src/User_Manual.md
|
||||
# src/install.html
|
||||
|
||||
- name: Rename firmware directory
|
||||
run: mv src/firmware src/${{ steps.rename-binary-files.outputs.name }}
|
||||
|
|
Loading…
Add table
Reference in a new issue