Skip to content

Commit

Permalink
Feed version info to staticfs build
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Sep 27, 2024
1 parent fc34709 commit 8662723
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/actions/build-staticfs/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: build-staticfs
description: Builds the static filesystem partition and uploads it as an artifact
inputs:
version:
required: true
description: 'Current firmware version'
skip-checkout:
description: 'If true, skips checkout'
required: false
Expand Down Expand Up @@ -37,6 +40,11 @@ runs:
- name: Build filesystem partition
shell: bash
run: pio run --target buildfs -e fs
env:
OPENSHOCK_FW_VERSION: ${{ inputs.version }}
OPENSHOCK_FW_GIT_REF: ${{ github.ref }}
OPENSHOCK_FW_GIT_COMMIT: ${{ github.sha }}
OPENSHOCK_FW_BUILD_DATE: ${{ github.event.head_commit.timestamp }}

- name: Rename partition binary
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/build-staticfs
with:
version: ${{ needs.getvars.outputs.version }}
skip-checkout: true

build-firmware:
Expand Down

0 comments on commit 8662723

Please sign in to comment.