Skip to content

Commit

Permalink
CI: Update the version of the GH Actions used.
Browse files Browse the repository at this point in the history
Some old versions are deprecated and will stop working soon,
others simply show warnings about using a deprecated version of
nodejs.
  • Loading branch information
microbit-carlos committed Apr 26, 2024
1 parent 5198bb3 commit f4c9357
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ jobs:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}, gcc ${{ matrix.gcc }}, cmake ${{ matrix.cmake || 'latest'}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- 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 Ninja via PyPI
Expand All @@ -41,9 +41,9 @@ jobs:
- name: Build default project using build.py
run: python build.py
- name: Upload hex file
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: build-py-${{ matrix.os }}
name: MICROBIT-${{ matrix.os }}-gcc{{ matrix.gcc }}-cmake{{ matrix.cmake }}
path: MICROBIT.hex
- name: Prepare BLE example
run: |
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Build BLE project using build.py
run: python build.py --clean
- name: Upload BLE hex file
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: build-py-BLE-${{ matrix.os }}
name: MICROBIT-BLE-${{ matrix.os }}-gcc{{ matrix.gcc }}-cmake{{ matrix.cmake }}
path: MICROBIT.hex
6 changes: 3 additions & 3 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04
name: Run CppCheck against the codebase + libraries
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install CppCheck
run: |
sudo apt-get update
Expand All @@ -22,7 +22,7 @@ jobs:
with:
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
- name: Run CppCheck
Expand All @@ -34,7 +34,7 @@ jobs:
echo "## Cppcheck output" >> $GITHUB_STEP_SUMMARY
echo "$(cat cppcheck.md)" >> $GITHUB_STEP_SUMMARY
- name: Upload log file
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: cppcheck.md
path: cppcheck.md
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build using the Docker image
env:
DOCKER_BUILDKIT: 1
run: docker build -t microbit-tools --output type=local,dest=out .
- name: Directory Listing
run: ls -al
- name: Upload hex file
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: Export from Docker
path: out/MICROBIT.hex
5 changes: 2 additions & 3 deletions .github/workflows/onRelease.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 All @@ -33,4 +33,3 @@ jobs:
with:
file: "build/*.a"
update_latest_release: true

0 comments on commit f4c9357

Please sign in to comment.