action.yml 712 B

1234567891011121314151617181920212223242526272829
  1. name: Setup Build Environment
  2. runs:
  3. using: "composite"
  4. steps:
  5. - name: Init Cache
  6. uses: actions/cache@v4
  7. with:
  8. path: |
  9. ~/.cache/pip
  10. ~/.platformio/.cache
  11. key: ${{ runner.os }}-pio
  12. - name: Install Python
  13. uses: actions/setup-python@v5
  14. with:
  15. python-version: '3.11'
  16. - name: Install PlatformIO
  17. shell: bash
  18. run: |
  19. pip install --upgrade platformio
  20. # a git tag of "room-server-v1.2.3" should set "v1.2.3" as GIT_TAG_VERSION
  21. - name: Extract Version from Git Tag
  22. shell: bash
  23. run: |
  24. GIT_TAG_NAME="${GITHUB_REF#refs/tags/}"
  25. echo "GIT_TAG_VERSION=${GIT_TAG_NAME##*-}" >> $GITHUB_ENV