Skip to content

Commit

Permalink
Change git checkout to action
Browse files Browse the repository at this point in the history
  • Loading branch information
vidplace7 committed Oct 7, 2024
1 parent 3ed81ce commit 2d54140
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,24 +109,24 @@ jobs:
outputs:
version: ${{ steps.build.outputs.version }}
steps:
- id: checkout_firmware
name: Checkout Meshtastic firmware
uses: actions/checkout@v4
with:
repository: meshtastic/firmware
ref: ${{ env.meshtastic_firmware_ref }}
submodules: recursive
# - id: checkout_firmware
# name: Checkout Meshtastic firmware
# uses: actions/checkout@v4
# with:
# repository: meshtastic/firmware
# ref: ${{ env.meshtastic_firmware_ref }}
# submodules: recursive

- id: checkout_custom
uses: actions/checkout@v4
name: Checkout this repo (custom changes)
with:
path: .custom

- name: Overlay custom firmware changes
run: |
rsync -av .custom/firmware/ ${{ github.workspace }}
rm -rf .custom
# - name: Overlay custom firmware changes
# run: |
# rsync -av .custom/firmware/ ${{ github.workspace }}
# rm -rf .custom

- name: Cache PlatformIO and pip
uses: actions/cache@v4
Expand All @@ -141,6 +141,7 @@ jobs:
XDG_CACHE_HOME: ${{ github.workspace }}/.cache
PLATFORMIO_CACHE_DIR: ${{ github.workspace }}/.cache/.platformio
with:
git-ref: ${{ env.meshtastic_firmware_ref }}
arch: ${{ matrix.arch }}
board: ${{ matrix.board }}
build-script-path: ${{ matrix.build-script-path }}
Expand Down

0 comments on commit 2d54140

Please sign in to comment.