Skip to content

Commit

Permalink
update github actions because of deprecated version of actions/upload…
Browse files Browse the repository at this point in the history
…-artifact: v3
  • Loading branch information
solosky committed Feb 10, 2025
1 parent 6cd7185 commit 1b4e69f
Showing 1 changed file with 13 additions and 30 deletions.
43 changes: 13 additions & 30 deletions .github/workflows/pixl.js-fw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: pixl.js-fw

on:
push:
branches: [ "develop"]
branches: [ "develop", "neo_v2"]
tags: ["*"]
pull_request:
types: ["opened"]
Expand All @@ -17,41 +17,24 @@ jobs:
runs-on: ubuntu-latest
container: solosky/nrf52-sdk:latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'true'

- name: Change Owner of Container Working Directory
run: chown root:root .
- name: build firmware
run: cd fw && make all RELEASE=1 APP_VERSION=$GITHUB_RUN_NUMBER BOARD=${{matrix.board}}
- name: upload bootloader
uses: actions/upload-artifact@v3
- name: copy artifact
run: mv fw/_build/bootloader.hex . && mv fw/_build/pixljs.hex . && mv fw/_build/pixljs_all.hex . && mv fw/_build/pixjs_ota_v${{github.run_number}}.zip . && mv fw/docs/fw_readme.txt . && mv fw/scripts/fw_update.bat .
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: pixljs_fw_${{matrix.board}}
path: fw/_build/bootloader.hex
- name: upload firmware
uses: actions/upload-artifact@v3
with:
name: pixljs_fw_${{matrix.board}}
path: fw/_build/pixljs.hex
- name: upload all
uses: actions/upload-artifact@v3
with:
name: pixljs_fw_${{matrix.board}}
path: fw/_build/pixljs_all.hex
- name: upload ota
uses: actions/upload-artifact@v3
with:
name: pixljs_fw_${{matrix.board}}
path: fw/_build/pixjs_ota_v${{github.run_number}}.zip
- name: upload fw update script
uses: actions/upload-artifact@v3
with:
name: pixljs_fw_${{matrix.board}}
path: fw/scripts/fw_update.bat
- name: upload fw readme file
uses: actions/upload-artifact@v3
with:
name: pixljs_fw_${{matrix.board}}
path: fw/docs/fw_readme.txt
path: |
bootloader.hex
pixljs.hex
pixljs_all.hex
pixjs_ota_v${{github.run_number}}.zip
fw_readme.txt
fw_update.bat

0 comments on commit 1b4e69f

Please sign in to comment.