Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Update the version of the GH Actions used. #90

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 || 'latest' }}
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 || 'latest' }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions/upload-artifact v4 doesn't let us overwrite uploaded artifacts, so we need to upload each one of these with a different name.

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