summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-08-10 19:39:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-08-10 19:46:13 +0900
commit17d869c7d65534a18885162ea4daa78ade3254d6 (patch)
tree9c5d3e352b22a5c5efee1dc8221a384e5d7f40ba /.github
parent187c164d714973fcbb87f33139cd863fd8068096 (diff)
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')
-rw-r--r--.github/workflows/check_encoding.yml11
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]