OpenCorePkg/.github/workflows/uncrustify.yml
Zongle Wang ff7fd00788
Build: Use Apple silicon images (#526)
- Use Apple silicon images
  o See https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source
 - Bump GH actions
  o Old ones based on Node 16 are deprecated
 - Merge Linux toolchain installation step
 - Use svenstaro/upload-release-action commit hash
 - Reuse env variables
2024-03-31 22:47:17 +01:00

40 lines
998 B
YAML

name: Uncrustify
on:
push:
pull_request:
workflow_dispatch:
release:
types: [published]
env:
PROJECT_TYPE: UEFI
jobs:
analyze-uncrustify:
name: Check Codestyle
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install curl git
sudo python3 -m pip install gitpython requests pyyaml
- name: CI Bootstrap
run: |
src=$(/usr/bin/curl -LfsS https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1
- name: Run Uncrustify
run: |
python3 -c "$(/usr/bin/curl https://raw.githubusercontent.com/acidanthera/ocbuild/master/uncstrap/uncstrap.py)" ./Uncrustify.yml || exit 1
- name: Upload to Artifacts
uses: actions/upload-artifact@v4
if: failure()
with:
name: Uncrustify Artifacts
path: ./uncrustify.diff