Jump to content

CI Build mit GitHub Actions


Recommended Posts

Hallo zusammen,

ich habe mal etwas mit GitHub Actions „rumgespielt“ und einen CI Build meines Forks der WARP-Firmware eingerichtet. Bei jedem Commit wird die Software nun automatisch kompiliert und - falls erfolgreich - purzelt am Ende dann ein Zip mit der neuen Firmware raus.

Falls es jemanden interessiert, hier ist mein erster Wurf…

Gruß Thomas

name: PlatformIO CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - uses: actions/cache@v3
        with:
          path: |
            ~/.cache/pip
            ~/.platformio/.cache
          key: ${{ runner.os }}-pio
      - uses: actions/setup-python@v4
        with:
          python-version: '3.9'
      - uses: actions/setup-node@v3
        with:
          node-version: 16
      - name: Install PlatformIO Core
        run: pip install --upgrade platformio

      - name: Build PlatformIO Project
        working-directory: ./software
        run: pio run -e warp2_poohnet

      - name: Upload Artifacts
        uses: actions/upload-artifact@v3
        with:
          name: warp-firmware
          path: ./software/build/

 

  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...