From 17d869c7d65534a18885162ea4daa78ade3254d6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 10 Aug 2020 19:39:58 +0900 Subject: [PATCH] Check if C-sources are US-ASCII Encoding of C-sources can not be determined, and non-ASCII code are often warned by localized compilers. --- .github/workflows/check_encoding.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/check_encoding.yml diff --git a/.github/workflows/check_encoding.yml b/.github/workflows/check_encoding.yml new file mode 100644 index 0000000000..7b0d60bf67 --- /dev/null +++ b/.github/workflows/check_encoding.yml @@ -0,0 +1,11 @@ +name: Check C-source encoding +on: [push, pull_request] + +jobs: + check_encoding: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check if C-sources are US-ASCII + run: | + ! grep -r -n '[^ -~]' *.[chy] include internal win32/*.[ch]