C++26 : 「未初期化変数の読み取りをエラー性動作とする」を追加 #3247
Workflow file for this run
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 forbidden characters | |
# 本リポジトリでは、以下に挙げる文字の使用を禁止している: | |
# U+00AD SOFT HYPHEN (ソフトハイフン) | |
# U+200B ZERO WIDTH SPACE (ゼロ幅スペース) | |
# | |
# 経緯は以下を参照: | |
# #735 SOFT HYPHENを削除する? | |
# https://github.com/cpprefjp/site/issues/735 | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
RIPGREP_VERSION: 14.1.0 | |
BIN_DIR: ${{ github.workspace }}/bin | |
REPO_DIR: repo | |
cache-version: v1 | |
steps: | |
- id: cache-ripgrep | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.BIN_DIR }} | |
key: ${{ env.cache-version }}-ripgrep-${{ env.RIPGREP_VERSION }} | |
- name: install ripgrep | |
if: steps.cache-ripgrep.outputs.cache-hit != 'true' | |
run: | | |
curl -fsSLO https://github.com/BurntSushi/ripgrep/releases/download/$RIPGREP_VERSION/ripgrep-$RIPGREP_VERSION-x86_64-unknown-linux-musl.tar.gz | |
mkdir -p $BIN_DIR | |
tar xvf ripgrep-$RIPGREP_VERSION-x86_64-unknown-linux-musl.tar.gz --strip=1 --no-anchor -C $BIN_DIR rg | |
working-directory: ${{ runner.temp }} | |
- uses: actions/checkout@v4 | |
with: | |
path: ${{ env.REPO_DIR }} | |
- name: check | |
run: "! $BIN_DIR/rg -t md --vimgrep '[\u00ad\u200b]' $REPO_DIR" |