Skip to content

Commit

Permalink
Update github actions (ExpressLRS#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkendall64 authored Feb 13, 2024
1 parent 14b0705 commit 190ba7e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
35 changes: 18 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
uses: rlespinasse/github-slug-action@v4

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

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

- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.target }}
Expand All @@ -29,7 +29,7 @@ jobs:
pip install wheel
- name: Cache PlatformIO
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.platformio
key: ${{ runner.os }}-platformio
Expand All @@ -47,7 +47,7 @@ jobs:
targets: ${{ steps.set-targets.outputs.targets }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: set-targets
run: echo "targets=[$( (grep '\[env:.*UART\]' src/targets/unified.ini ; grep -r '\[env:.*STLINK\]' src/targets/) | sed 's/.*://' | sed s/.$// | egrep "(STLINK|UART)" | grep -v DEPRECATED | tr '\n' ',' | sed 's/,$/"\n/' | sed 's/,/","/'g | sed 's/^/"/')]" >> $GITHUB_OUTPUT

Expand All @@ -64,15 +64,15 @@ jobs:
uses: rlespinasse/github-slug-action@v4

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

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

- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.target }}
Expand All @@ -84,7 +84,7 @@ jobs:
pip install wheel
- name: Cache PlatformIO
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.platformio
key: ${{ runner.os }}-platformio
Expand Down Expand Up @@ -118,32 +118,33 @@ jobs:
esac
- name: Store Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: firmware
name: temp-${{ matrix.target }}
path: ~/artifacts/**/*
retention-days: 1
continue-on-error: true

firmware:
needs: [build, test]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Checkout targets repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ExpressLRS/targets
path: src/hardware

- name: Get firmware artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: firmware
path: dist
merge-multiple: true

- name: Copy hardware files to firmware folder
run: cp -r src/hardware dist/firmware
Expand All @@ -157,7 +158,7 @@ jobs:
run: cd src ; find bootloader -name \*.bin -o -name \*.frk | grep -v src/ | cpio -pdm ../dist/firmware

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

Expand All @@ -168,7 +169,7 @@ jobs:
shiv -c flash -o ../../dist/firmware/flasher.pyz pyserial .
- name: Update firmware artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: firmware
path: dist/**/*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v3
- uses: actions/stale@v9
with:
days-before-issue-stale: -1
days-before-issue-close: 12
Expand Down

0 comments on commit 190ba7e

Please sign in to comment.