[ci] Use LF line endings for pregenerate.yml (#6650)

This commit is contained in:
Gold856
2024-05-23 11:23:54 -04:00
committed by GitHub
parent 27efd37c52
commit 2fd8dae503

View File

@@ -1,46 +1,46 @@
name: Check Pregenerated Files name: Check Pregenerated Files
on: on:
pull_request: pull_request:
push: push:
branches-ignore: branches-ignore:
- main - main
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
update: update:
name: "Update" name: "Update"
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Python 3.9 - name: Set up Python 3.9
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: 3.9 python-version: 3.9
- name: Install jinja - name: Install jinja
run: python -m pip install jinja2 run: python -m pip install jinja2
- name: Install protobuf dependencies - name: Install protobuf dependencies
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler && wget https://github.com/HebiRobotics/QuickBuffers/releases/download/1.3.3/protoc-gen-quickbuf-1.3.3-linux-x86_64.exe && chmod +x protoc-gen-quickbuf-1.3.3-linux-x86_64.exe run: sudo apt-get update && sudo apt-get install -y protobuf-compiler && wget https://github.com/HebiRobotics/QuickBuffers/releases/download/1.3.3/protoc-gen-quickbuf-1.3.3-linux-x86_64.exe && chmod +x protoc-gen-quickbuf-1.3.3-linux-x86_64.exe
- name: Run hal - name: Run hal
run: ./hal/generate_usage_reporting.py run: ./hal/generate_usage_reporting.py
- name: Run ntcore - name: Run ntcore
run: ./ntcore/generate_topics.py run: ./ntcore/generate_topics.py
- name: Run wpimath - name: Run wpimath
run: ./wpimath/generate_numbers.py && ./wpimath/generate_quickbuf.py protoc protoc-gen-quickbuf-1.3.3-linux-x86_64.exe run: ./wpimath/generate_numbers.py && ./wpimath/generate_quickbuf.py protoc protoc-gen-quickbuf-1.3.3-linux-x86_64.exe
- name: Add untracked files to index so they count as changes - name: Add untracked files to index so they count as changes
run: git add -A run: git add -A
- name: Check output - name: Check output
run: git --no-pager diff --exit-code HEAD run: git --no-pager diff --exit-code HEAD
- name: Generate diff - name: Generate diff
run: git diff HEAD > pregenerated-files-fixes.patch run: git diff HEAD > pregenerated-files-fixes.patch
if: ${{ failure() }} if: ${{ failure() }}
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: pregenerated-files-fixes name: pregenerated-files-fixes
path: pregenerated-files-fixes.patch path: pregenerated-files-fixes.patch
if: ${{ failure() }} if: ${{ failure() }}