Skip to content

Commit

Permalink
update nerves github action
Browse files Browse the repository at this point in the history
  • Loading branch information
gBillal committed Dec 18, 2024
1 parent af7c088 commit cac3dfe
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/nerves.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ jobs:
NERVES_HUB_ORG: ${{ vars.NERVES_HUB_ORG }}
NERVES_HUB_PRODUCT: ${{ vars.NERVES_HUB_PRODUCT }}
NERVES_HUB_NON_INTERACTIVE: true
NERVES_FIRMWARE_SIGNING_KEY: ${{ secrets.NERVES_FIRMWARE_SIGNING_KEY }}
steps:
- uses: actions/checkout@v3

- uses: erlef/setup-beam@v1.16
- uses: erlef/setup-beam@v1.18
with:
otp-version: 27.1
otp-version: 27.2
elixir-version: 1.17.3

- name: Install dependencies
Expand Down Expand Up @@ -63,15 +64,12 @@ jobs:
- name: Download firmware dependencies
run: mix do deps.get, firmware.deps

- name: Delete bundlex precompiled deps
run: rm -rf ../ui/priv/bundlex/nif/https*

- name: Create firmware
run: mix firmware

- name: Sign firmware
run: |
fwup -S --private-key ${{ secrets.NERVES_FIRMWARE_SIGNING_KEY }} -i _build/${{ env.MIX_TARGET }}_${{ env.MIX_ENV}}/nerves/images/ex_nvr_fw.fw -o ex_nvr_fw.fw
fwup -S --private-key ${{ env.NERVES_FIRMWARE_SIGNING_KEY }} -i _build/${{ env.MIX_TARGET }}_${{ env.MIX_ENV}}/nerves/images/ex_nvr_fw.fw -o ex_nvr_fw.fw
- name: Upload to Nerves hub
run: mix nerves_hub.firmware publish --product ${{ env.NERVES_HUB_PRODUCT }} ex_nvr_fw.fw

0 comments on commit cac3dfe

Please sign in to comment.