Skip to content

Commit

Permalink
Fix github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Angel Ajo Pelayo <[email protected]>
  • Loading branch information
mangelajo committed Jan 5, 2024
1 parent fb437e7 commit 9874cf9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-firmware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
- run: sudo apt-get install -y make podman
- name: Setup the builder image
run: |
cd firmware/bootloader
cd bootloader
make .build-container
- name: Build the firmware
run: |
cd firmware/bootloader
cd bootloader
make in-container
- name: Archive resulting bootloader
uses: actions/upload-artifact@v3
with:
name: jumpstarter-bootloader-dfu.bin
path: firmware/bootloader/dfu-bootloader.bin
path: bootloader/dfu-bootloader.bin

application-build:
runs-on: ubuntu-latest
Expand All @@ -29,15 +29,15 @@ jobs:
- run: sudo apt-get install -y make podman
- name: Setup the builder image
run: |
cd firmware/application
cd application
make .build-container
- name: Build the firmware
run: |
cd firmware/application
cd application
make in-container
- name: Archive resulting application
uses: actions/upload-artifact@v3
with:
name: jumpstarter-main.cab
path: firmware/application/jumpstarter*
path: application/jumpstarter*

4 changes: 2 additions & 2 deletions application/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ clean:
touch .build-container

firmware-builder: .build-container
podman run -ti --rm -v $(CURDIR)/../../:/workdir -w /workdir/firmware/application firmware-builder bash
podman run -ti --rm -v $(CURDIR)/../:/workdir -w /workdir/application firmware-builder bash

in-container: .build-container
podman run -ti --rm -v $(CURDIR)/../../:/workdir -w /workdir/firmware/application firmware-builder make $(THIS)
podman run -ti --rm -v $(CURDIR)/../:/workdir -w /workdir/application firmware-builder make $(THIS)
4 changes: 2 additions & 2 deletions bootloader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ clean:
touch .build-container

firmware-builder: .build-container
podman run -ti --rm -v $(CURDIR)/../../:/workdir -w /workdir/firmware/bootloader firmware-builder bash
podman run -ti --rm -v $(CURDIR)/../:/workdir -w /workdir/bootloader firmware-builder bash

in-container: .build-container
podman run -ti --rm -v $(CURDIR)/../../:/workdir -w /workdir/firmware/bootloader firmware-builder make $(THIS)
podman run -ti --rm -v $(CURDIR)/../:/workdir -w /workdir/bootloader firmware-builder make $(THIS)

.PHONY: clean all flash openocd

0 comments on commit 9874cf9

Please sign in to comment.