Skip to content

Commit

Permalink
Merge pull request #81 from pkendall64/fix-github-warnings
Browse files Browse the repository at this point in the history
Fix github build deprecation warnings
  • Loading branch information
pkendall64 committed Feb 12, 2023
2 parents 7673655 + a0fbdae commit a6ca375
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
targets: ${{ steps.set-targets.outputs.targets }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- id: set-targets
run: echo "::set-output name=targets::[$(grep -r "\[env:" targets | sed 's/.*://' | sed s/.$// | egrep "UART" | tr '\n' ',' | sed 's/,$/"\n/' | sed 's/,/","/'g | sed 's/^/"/')]"
run: echo "targets=[$(grep -r "\[env:" targets | sed 's/.*://' | sed s/.$// | egrep "UART" | tr '\n' ',' | sed 's/,$/"\n/' | sed 's/,/","/'g | sed 's/^/"/')]" >> $GITHUB_OUTPUT

build:
needs: targets
Expand All @@ -21,16 +21,18 @@ jobs:
steps:

- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v3.x
uses: rlespinasse/github-slug-action@v4

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Cache pip
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.target }}
Expand All @@ -42,7 +44,7 @@ jobs:
pip install wheel
- name: Cache PlatformIO
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-platformio
Expand All @@ -56,7 +58,7 @@ jobs:
mv .pio/build ~/artifacts/
- name: Store Artifacts
uses: actions/upload-artifact@v2-preview
uses: actions/upload-artifact@v3
with:
name: ExpressLRS-Backpack-${{ env.GITHUB_REF_SLUG_URL }}-${{ github.run_number }}
path: ~/artifacts/**/*.bin
Expand Down

0 comments on commit a6ca375

Please sign in to comment.