ruby-changes:62545
From: Nobuyoshi <ko1@a...>
Date: Mon, 10 Aug 2020 19:46:36 +0900 (JST)
Subject: [ruby-changes:62545] 17d869c7d6 (master): Check if C-sources are US-ASCII
https://git.ruby-lang.org/ruby.git/commit/?id=17d869c7d6 From 17d869c7d65534a18885162ea4daa78ade3254d6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 10 Aug 2020 19:39:58 +0900 Subject: 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. diff --git a/.github/workflows/check_encoding.yml b/.github/workflows/check_encoding.yml new file mode 100644 index 0000000..7b0d60b --- /dev/null +++ b/.github/workflows/check_encoding.yml @@ -0,0 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/check_encoding.yml#L1 +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] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/