Skip to content

Commit

Permalink
update CI (follow-up to #2)
Browse files Browse the repository at this point in the history
- use master branch for re-usable workflows
- fix syntax errors and typos in PlatformIO CI
  • Loading branch information
2bndy5 committed Apr 21, 2023
1 parent bae24ec commit e1ffaf3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_arduino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:

jobs:
check_formatting:
uses: 2bndy5/CirquePinnacle/.github/workflows/cpp_lint.yaml@add-portability
uses: 2bndy5/CirquePinnacle/.github/workflows/cpp_lint.yaml@master
with:
extensions: 'ino'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ env:

jobs:
check_formatting:
uses: 2bndy5/CirquePinnacle/.github/workflows/cpp_lint.yaml@add-portability
uses: 2bndy5/CirquePinnacle/.github/workflows/cpp_lint.yaml@master
with:
ignore: 'examples|examples_pico|utility/bcm2xxx/bcm2835.h|utility/bcm2xxx/bcm2835.c'
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_pico_sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:

jobs:
check_formatting:
uses: 2bndy5/CirquePinnacle/.github/workflows/cpp_lint.yaml@add-portability
uses: 2bndy5/CirquePinnacle/.github/workflows/cpp_lint.yaml@master
with:
ignore: 'examples/pico_sdk|'
build:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build_platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
pull_request:
types: [opened, reopened]
paths:
- ".github/workflows/build_platformIio.yml"
- ".github/workflows/build_platformio.yml"
- "library.json"
- "examples/**/*.ino"
push:
paths:
- ".github/workflows/build_platformIio.yml"
- ".github/workflows/build_platformio.yml"
- "library.json"
- "examples/**/*.ino"
release:
Expand Down Expand Up @@ -48,21 +48,21 @@ jobs:
path: PlatformIO*.tar.gz

- name: Upload Release assets
if: github.events.name == 'release'
if: github.event_name == 'release'
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "PlatformIO*.tar.gz"

- name: upload package to PlatformIO Registry
if: github.events.name == 'release'
if: github.event_name == 'release'
# PIO lib packages cannot be re-published under the same tag
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
run: pio package publish --owner 2bndy5 --non-interactive

check_formatting:
uses: 2bndy5/CirquePinnacle/.github/workflows/cpp_lint.yaml@add-portability
uses: 2bndy5/CirquePinnacle/.github/workflows/cpp_lint.yaml@master
with:
extensions: ino

Expand Down

0 comments on commit e1ffaf3

Please sign in to comment.