Add LoongArch ASX support #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Detect trailing whitespace | |
on: [push, pull_request] | |
jobs: | |
whitespace: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Remove whitespace and check the diff | |
run: | | |
set -eu | |
scripts/remove_trailing_whitespace.sh | |
git diff >whitespace.patch | |
cat whitespace.patch | |
if [ $(wc -c <whitespace.patch) -ne 0 ] ; then | |
echo " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " | |
echo "You have trailing whitespace, please download the artifact" | |
echo "and apply with git apply <whitespace.patch or" | |
echo "run scripts/remove_trailing_whitespace.sh locally." | |
echo " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " | |
exit 1 | |
else | |
echo "no trailing whitespace found, good!" | |
fi | |
- name: Archive whitespace patch | |
uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: whitespace-patch | |
path: | | |
whitespace.patch | |
if-no-files-found: ignore | |