Skip to content

Commit

Permalink
CI: Update versions of actions to remove warnings about node 16. (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos authored Feb 28, 2024
1 parent 4be58cf commit 08ba1e7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
name: ${{ matrix.os }}, gcc ${{ matrix.gcc }}, cmake ${{ matrix.cmake || 'latest'}}
steps:
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Setup arm-none-eabi-gcc ${{ matrix.gcc }}
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: ${{ matrix.gcc }}
- name: Setup CMake ${{ matrix.cmake }}
uses: jwlawson/actions-setup-cmake@v1
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: ${{ matrix.cmake }}
- name: Install latest Ninja release via PyPI
Expand All @@ -38,13 +38,13 @@ jobs:
ninja --version
python --version
- name: Clone the microbit-v2-samples repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'lancaster-university/microbit-v2-samples'
# We need to use the checkout action (instead of build.py cloning the
# repository) so that on PRs we can get the commit from the PR merge
- name: Clone this repository in the libraries folder
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: libraries/codal-microbit-v2
submodules: 'recursive'
Expand All @@ -70,7 +70,7 @@ jobs:
run: python build.py
- name: Upload non-ble hex file
if: runner.os == 'Windows' && matrix.gcc == 'latest' && matrix.cmake == ''
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: codal-microbit-v2-${{ github.sha }}
path: MICROBIT.hex
Expand All @@ -89,7 +89,7 @@ jobs:
run: python build.py --clean
- name: Upload BLE hex file
if: runner.os == 'Windows' && matrix.gcc == 'latest' && matrix.cmake == ''
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: codal-microbit-v2-BLE-${{ github.sha }}
path: MICROBIT.hex
4 changes: 2 additions & 2 deletions .github/workflows/micropython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Build MicroPython
steps:
- name: Clone MicroPython
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'microbit-foundation/micropython-microbit-v2'
submodules: 'true'
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
cd src
make -j4
- name: Upload hex file
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: micropython-${{ github.sha }}.hex
path: src/MICROBIT.hex
4 changes: 2 additions & 2 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-20.04
name: Build against Ubuntu-20.04 for release assets
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install CppCheck
run: |
sudo apt-get update
Expand All @@ -22,7 +22,7 @@ jobs:
release: latest

- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v1
uses: jwlawson/actions-setup-cmake@v2

- name: Build default project using build.py
run: python build.py
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/size-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# Install the toolchain #
#########################
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Setup arm-none-eabi-gcc 10.3
Expand All @@ -42,7 +42,7 @@ jobs:
# Set up the CODAL project and build it #
#########################################
- name: Clone the microbit-v2-samples repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'lancaster-university/microbit-v2-samples'
# Unless manually triggered via workflow_dispatch this will be an empty
Expand All @@ -51,7 +51,7 @@ jobs:
# We need to use the checkout action (instead of build.py cloning the
# repository) so that on PRs we can get the commit from the PR merge
- name: Clone this repository in the libraries folder
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: libraries/codal-microbit-v2
fetch-depth: '0'
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
- name: "PR only: Add comment to PR with the bloaty diff"
if: ${{ github.event.pull_request }}
continue-on-error: true
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
let prComment = '## Build diff\n' +
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: python3 -m pip install natsort
Expand Down

0 comments on commit 08ba1e7

Please sign in to comment.