Browse Source
Merge pull request #2641 from sefinek/ci/update-github-actions
ci: update GitHub Actions and Python version
main
Liam Cottle
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with
17 additions and
17 deletions
-
.github/actions/setup-build-environment/action.yml
-
.github/workflows/build-companion-firmwares.yml
-
.github/workflows/build-repeater-firmwares.yml
-
.github/workflows/build-room-server-firmwares.yml
-
.github/workflows/github-pages.yml
-
.github/workflows/pr-build-check.yml
|
|
@ -4,7 +4,7 @@ runs: |
|
|
steps: |
|
|
steps: |
|
|
|
|
|
|
|
|
- name: Init Cache |
|
|
- name: Init Cache |
|
|
uses: actions/cache@v4 |
|
|
uses: actions/cache@v5 |
|
|
with: |
|
|
with: |
|
|
path: | |
|
|
path: | |
|
|
~/.cache/pip |
|
|
~/.cache/pip |
|
|
@ -12,9 +12,9 @@ runs: |
|
|
key: ${{ runner.os }}-pio |
|
|
key: ${{ runner.os }}-pio |
|
|
|
|
|
|
|
|
- name: Install Python |
|
|
- name: Install Python |
|
|
uses: actions/setup-python@v5 |
|
|
uses: actions/setup-python@v6 |
|
|
with: |
|
|
with: |
|
|
python-version: '3.11' |
|
|
python-version: '3.13' |
|
|
|
|
|
|
|
|
- name: Install PlatformIO |
|
|
- name: Install PlatformIO |
|
|
shell: bash |
|
|
shell: bash |
|
|
|
|
|
@ -16,7 +16,7 @@ jobs: |
|
|
steps: |
|
|
steps: |
|
|
|
|
|
|
|
|
- name: Clone Repo |
|
|
- name: Clone Repo |
|
|
uses: actions/checkout@v4 |
|
|
uses: actions/checkout@v6 |
|
|
|
|
|
|
|
|
- name: Setup Build Environment |
|
|
- name: Setup Build Environment |
|
|
uses: ./.github/actions/setup-build-environment |
|
|
uses: ./.github/actions/setup-build-environment |
|
|
@ -27,13 +27,13 @@ jobs: |
|
|
run: /usr/bin/env bash build.sh build-companion-firmwares |
|
|
run: /usr/bin/env bash build.sh build-companion-firmwares |
|
|
|
|
|
|
|
|
- name: Upload Workflow Artifacts |
|
|
- name: Upload Workflow Artifacts |
|
|
uses: actions/upload-artifact@v4 |
|
|
uses: actions/upload-artifact@v7 |
|
|
with: |
|
|
with: |
|
|
name: companion-firmwares |
|
|
name: companion-firmwares |
|
|
path: out |
|
|
path: out |
|
|
|
|
|
|
|
|
- name: Create Release |
|
|
- name: Create Release |
|
|
uses: softprops/action-gh-release@v2 |
|
|
uses: softprops/action-gh-release@v3 |
|
|
if: startsWith(github.ref, 'refs/tags/') |
|
|
if: startsWith(github.ref, 'refs/tags/') |
|
|
with: |
|
|
with: |
|
|
name: Companion Firmware ${{ env.GIT_TAG_VERSION }} |
|
|
name: Companion Firmware ${{ env.GIT_TAG_VERSION }} |
|
|
|
|
|
@ -16,7 +16,7 @@ jobs: |
|
|
steps: |
|
|
steps: |
|
|
|
|
|
|
|
|
- name: Clone Repo |
|
|
- name: Clone Repo |
|
|
uses: actions/checkout@v4 |
|
|
uses: actions/checkout@v6 |
|
|
|
|
|
|
|
|
- name: Setup Build Environment |
|
|
- name: Setup Build Environment |
|
|
uses: ./.github/actions/setup-build-environment |
|
|
uses: ./.github/actions/setup-build-environment |
|
|
@ -27,13 +27,13 @@ jobs: |
|
|
run: /usr/bin/env bash build.sh build-repeater-firmwares |
|
|
run: /usr/bin/env bash build.sh build-repeater-firmwares |
|
|
|
|
|
|
|
|
- name: Upload Workflow Artifacts |
|
|
- name: Upload Workflow Artifacts |
|
|
uses: actions/upload-artifact@v4 |
|
|
uses: actions/upload-artifact@v7 |
|
|
with: |
|
|
with: |
|
|
name: repeater-firmwares |
|
|
name: repeater-firmwares |
|
|
path: out |
|
|
path: out |
|
|
|
|
|
|
|
|
- name: Create Release |
|
|
- name: Create Release |
|
|
uses: softprops/action-gh-release@v2 |
|
|
uses: softprops/action-gh-release@v3 |
|
|
if: startsWith(github.ref, 'refs/tags/') |
|
|
if: startsWith(github.ref, 'refs/tags/') |
|
|
with: |
|
|
with: |
|
|
name: Repeater Firmware ${{ env.GIT_TAG_VERSION }} |
|
|
name: Repeater Firmware ${{ env.GIT_TAG_VERSION }} |
|
|
|
|
|
@ -16,7 +16,7 @@ jobs: |
|
|
steps: |
|
|
steps: |
|
|
|
|
|
|
|
|
- name: Clone Repo |
|
|
- name: Clone Repo |
|
|
uses: actions/checkout@v4 |
|
|
uses: actions/checkout@v6 |
|
|
|
|
|
|
|
|
- name: Setup Build Environment |
|
|
- name: Setup Build Environment |
|
|
uses: ./.github/actions/setup-build-environment |
|
|
uses: ./.github/actions/setup-build-environment |
|
|
@ -27,13 +27,13 @@ jobs: |
|
|
run: /usr/bin/env bash build.sh build-room-server-firmwares |
|
|
run: /usr/bin/env bash build.sh build-room-server-firmwares |
|
|
|
|
|
|
|
|
- name: Upload Workflow Artifacts |
|
|
- name: Upload Workflow Artifacts |
|
|
uses: actions/upload-artifact@v4 |
|
|
uses: actions/upload-artifact@v7 |
|
|
with: |
|
|
with: |
|
|
name: room-server-firmwares |
|
|
name: room-server-firmwares |
|
|
path: out |
|
|
path: out |
|
|
|
|
|
|
|
|
- name: Create Release |
|
|
- name: Create Release |
|
|
uses: softprops/action-gh-release@v2 |
|
|
uses: softprops/action-gh-release@v3 |
|
|
if: startsWith(github.ref, 'refs/tags/') |
|
|
if: startsWith(github.ref, 'refs/tags/') |
|
|
with: |
|
|
with: |
|
|
name: Room Server Firmware ${{ env.GIT_TAG_VERSION }} |
|
|
name: Room Server Firmware ${{ env.GIT_TAG_VERSION }} |
|
|
|
|
|
@ -15,12 +15,12 @@ jobs: |
|
|
steps: |
|
|
steps: |
|
|
|
|
|
|
|
|
- name: Checkout Repo |
|
|
- name: Checkout Repo |
|
|
uses: actions/checkout@v4 |
|
|
uses: actions/checkout@v6 |
|
|
|
|
|
|
|
|
- name: Setup Python |
|
|
- name: Setup Python |
|
|
uses: actions/setup-python@v5 |
|
|
uses: actions/setup-python@v6 |
|
|
with: |
|
|
with: |
|
|
ruby-version: 3.x |
|
|
python-version: '3.13' |
|
|
|
|
|
|
|
|
- name: Build |
|
|
- name: Build |
|
|
run: | |
|
|
run: | |
|
|
@ -28,7 +28,7 @@ jobs: |
|
|
mkdocs build |
|
|
mkdocs build |
|
|
|
|
|
|
|
|
- name: Deploy to GitHub Pages |
|
|
- name: Deploy to GitHub Pages |
|
|
uses: peaceiris/actions-gh-pages@v3 |
|
|
uses: peaceiris/actions-gh-pages@v4.1.0 |
|
|
with: |
|
|
with: |
|
|
github_token: ${{ secrets.GITHUB_TOKEN }} |
|
|
github_token: ${{ secrets.GITHUB_TOKEN }} |
|
|
cname: docs.meshcore.io |
|
|
cname: docs.meshcore.io |
|
|
|
|
|
@ -42,7 +42,7 @@ jobs: |
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- name: Clone Repo |
|
|
- name: Clone Repo |
|
|
uses: actions/checkout@v4 |
|
|
uses: actions/checkout@v6 |
|
|
|
|
|
|
|
|
- name: Setup Build Environment |
|
|
- name: Setup Build Environment |
|
|
uses: ./.github/actions/setup-build-environment |
|
|
uses: ./.github/actions/setup-build-environment |
|
|
|