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