Skip to content

Commit

Permalink
ci: prefer plain files instead of dot files
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed Jan 8, 2025
1 parent d725d6a commit 77876ec
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions .github/workflows/.gcc.yml → .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 77876ec

Please sign in to comment.