diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-08-10 19:39:58 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-08-10 19:46:13 +0900 |
commit | 17d869c7d65534a18885162ea4daa78ade3254d6 (patch) | |
tree | 9c5d3e352b22a5c5efee1dc8221a384e5d7f40ba /.github/workflows | |
parent | 187c164d714973fcbb87f33139cd863fd8068096 (diff) | |
download | ruby-17d869c7d65534a18885162ea4daa78ade3254d6.tar.gz |
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.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/check_encoding.yml | 11 |
1 files changed, 11 insertions, 0 deletions
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] |