From 77876ec349cbc6900167286e5c3d9e30ca29ce30 Mon Sep 17 00:00:00 2001 From: Joao Paulo Magalhaes Date: Wed, 8 Jan 2025 12:15:46 +0000 Subject: [PATCH] ci: prefer plain files instead of dot files --- .github/workflows/Makefile | 14 +++++++++----- .../workflows/{.benchmarks.yml => benchmarks.yml} | 0 .github/workflows/{.clang.yml => clang.yml} | 0 .../workflows/{.clang_tidy.yml => clang_tidy.yml} | 0 .github/workflows/{.codeql.yml => codeql.yml} | 0 .github/workflows/{.coverage.yml => coverage.yml} | 0 .../workflows/{.emscripten.yml => emscripten.yml} | 0 .github/workflows/{.gcc.yml => gcc.yml} | 1 + .github/workflows/{.install.yml => install.yml} | 0 .github/workflows/{.macosx.yml => macosx.yml} | 0 .../workflows/{.rarearchs.yml => rarearchs.yml} | 0 .github/workflows/{.release.yml => release.yml} | 0 .github/workflows/{.samples.yml => samples.yml} | 0 .github/workflows/{.windows.yml => windows.yml} | 0 14 files changed, 10 insertions(+), 5 deletions(-) rename .github/workflows/{.benchmarks.yml => benchmarks.yml} (100%) rename .github/workflows/{.clang.yml => clang.yml} (100%) rename .github/workflows/{.clang_tidy.yml => clang_tidy.yml} (100%) rename .github/workflows/{.codeql.yml => codeql.yml} (100%) rename .github/workflows/{.coverage.yml => coverage.yml} (100%) rename .github/workflows/{.emscripten.yml => emscripten.yml} (100%) rename .github/workflows/{.gcc.yml => gcc.yml} (99%) rename .github/workflows/{.install.yml => install.yml} (100%) rename .github/workflows/{.macosx.yml => macosx.yml} (100%) rename .github/workflows/{.rarearchs.yml => rarearchs.yml} (100%) rename .github/workflows/{.release.yml => release.yml} (100%) rename .github/workflows/{.samples.yml => samples.yml} (100%) rename .github/workflows/{.windows.yml => windows.yml} (100%) diff --git a/.github/workflows/Makefile b/.github/workflows/Makefile index 6be02816..fc08020a 100644 --- a/.github/workflows/Makefile +++ b/.github/workflows/Makefile @@ -4,21 +4,19 @@ YS_VERSION := 0.1.87 YS_PREFIX := /tmp/rapidyaml YS := $(YS_PREFIX)/bin/ys-$(YS_VERSION) +INPUT_FILES := $(wildcard */*) SOURCE_FILES := $(wildcard *.ys) TARGET_FILES := $(SOURCE_FILES:%.ys=%.yml) -TARGET_FILES := $(TARGET_FILES:%=.%) export PATH := $(YS_PREFIX)/bin:$(PATH) export YSPATH := $(shell pwd -P)/ys -default: - build: $(TARGET_FILES) test: force build @git diff --exit-code .*.yml && \ - echo -e '\nPASS - No normative changes to .github/workflows/.*.yml' + echo -e '\nPASS - No normative changes to .github/workflows/*.yml' DIFF_ORIG_COMMIT ?= HEAD diff: @@ -41,14 +39,20 @@ diff: force: touch *.ys -.%.yml: %.ys $(YS) +%.yml: %.ys $(YS) $(INPUT_FILES) @[ -f $@ ] && chmod a+w $@ @echo "# DO NOT EDIT - GENERATED FROM .github/workflows/$<" > $@ @echo >> $@ ys -Y $< >> $@ @chmod a-w $@ + @echo " `wc -ml $<`" + @echo " `wc -ml $@`" # Auto install a specific version of ys (under /tmp): $(YS): curl -s https://yamlscript.org/install | \ BIN=1 VERSION=$(YS_VERSION) PREFIX=$(YS_PREFIX) bash + +stats: + @echo "ys : $$(wc -l *.ys)" + @echo "yml: $$(wc -l *.yml)" diff --git a/.github/workflows/.benchmarks.yml b/.github/workflows/benchmarks.yml similarity index 100% rename from .github/workflows/.benchmarks.yml rename to .github/workflows/benchmarks.yml diff --git a/.github/workflows/.clang.yml b/.github/workflows/clang.yml similarity index 100% rename from .github/workflows/.clang.yml rename to .github/workflows/clang.yml diff --git a/.github/workflows/.clang_tidy.yml b/.github/workflows/clang_tidy.yml similarity index 100% rename from .github/workflows/.clang_tidy.yml rename to .github/workflows/clang_tidy.yml diff --git a/.github/workflows/.codeql.yml b/.github/workflows/codeql.yml similarity index 100% rename from .github/workflows/.codeql.yml rename to .github/workflows/codeql.yml diff --git a/.github/workflows/.coverage.yml b/.github/workflows/coverage.yml similarity index 100% rename from .github/workflows/.coverage.yml rename to .github/workflows/coverage.yml diff --git a/.github/workflows/.emscripten.yml b/.github/workflows/emscripten.yml similarity index 100% rename from .github/workflows/.emscripten.yml rename to .github/workflows/emscripten.yml diff --git a/.github/workflows/.gcc.yml b/.github/workflows/gcc.yml similarity index 99% rename from .github/workflows/.gcc.yml rename to .github/workflows/gcc.yml index 03967e9d..02d2f5fb 100644 --- a/.github/workflows/.gcc.yml +++ b/.github/workflows/gcc.yml @@ -727,6 +727,7 @@ jobs: continue-on-error: true runs-on: ubuntu-latest container: ghcr.io/biojppm/c4core/ubuntu18.04:latest + name: arm/c++${{matrix.cxx}}/${{matrix.bt}} strategy: fail-fast: false matrix: diff --git a/.github/workflows/.install.yml b/.github/workflows/install.yml similarity index 100% rename from .github/workflows/.install.yml rename to .github/workflows/install.yml diff --git a/.github/workflows/.macosx.yml b/.github/workflows/macosx.yml similarity index 100% rename from .github/workflows/.macosx.yml rename to .github/workflows/macosx.yml diff --git a/.github/workflows/.rarearchs.yml b/.github/workflows/rarearchs.yml similarity index 100% rename from .github/workflows/.rarearchs.yml rename to .github/workflows/rarearchs.yml diff --git a/.github/workflows/.release.yml b/.github/workflows/release.yml similarity index 100% rename from .github/workflows/.release.yml rename to .github/workflows/release.yml diff --git a/.github/workflows/.samples.yml b/.github/workflows/samples.yml similarity index 100% rename from .github/workflows/.samples.yml rename to .github/workflows/samples.yml diff --git a/.github/workflows/.windows.yml b/.github/workflows/windows.yml similarity index 100% rename from .github/workflows/.windows.yml rename to .github/workflows/windows.yml