Unverified Commit 4c648381 authored by Vít Starý Novotný's avatar Vít Starý Novotný
Browse files

Merge branch 'master' into HEAD

parents 51634b88 5347785a
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
name: Test
on:
  push:
  pull_request:
  workflow_dispatch:
env:
  DEBIAN_FRONTEND: noninteractive
jobs:
  test:
    name: Build and test
    runs-on: ubuntu-latest
    container:
      image: texlive/texlive:latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2
      - name: Install additional packages
        run: |
          set -ex
          apt-get -qy update
          apt-get -qy install inkscape zip
      - name: Install the Fibeamer package
        run: |
          set -ex
          make base
          make install-base to="$HOME"/texmf nohash=true
      - name: Typeset documentation, user guides, and user examples
        run: |
          set -ex
          make dist
      - name: Upload artifact fibeamer.tds.zip
        uses: actions/upload-artifact@v2
        with:
          name: fibeamer.tds.zip
          path: fibeamer.tds.zip
      - name: Upload artifact fibeamer.ctan.zip
        uses: actions/upload-artifact@v2
        with:
          name: fibeamer.ctan.zip
          path: fibeamer.ctan.zip
      - name: Upload artifact fibeamer.zip
        uses: actions/upload-artifact@v2
        with:
          name: fibeamer.zip
          path: fibeamer.zip
      - name: Upload artifact fibeamer.pdf
        uses: actions/upload-artifact@v2
        with:
          name: fibeamer.pdf
          path: fibeamer.pdf
+18 −18
Original line number Diff line number Diff line
SUBMAKES_REQUIRED=logo/mu theme/mu logo/bs theme/bs
SUBMAKES_EXTRA=guide/mu example/mu example/bs
SUBMAKES_TEST=test/mu test/bs
SUBMAKES=$(SUBMAKES_REQUIRED) $(SUBMAKES_EXTRA) $(SUBMAKES_TEST)
SUBMAKES=$(SUBMAKES_REQUIRED) $(SUBMAKES_EXTRA)
.PHONY: all base complete docs clean dist dist-implode implode \
	install install-base install-docs uninstall tests $(SUBMAKES)
	install install-base install-docs uninstall $(SUBMAKES)

BASETHEMEFILE=beamerthemefibeamer.sty
OTHERTHEMEFILES=theme/mu/*.sty theme/bs/*.sty
@@ -12,11 +11,10 @@ LOGOSOURCES=logo/*/*.pdf
LOGOS=logo/*/*.eps
DTXFILES=*.dtx theme/mu/*.dtx theme/bs/*.dtx
INSFILES=*.ins theme/mu/*.ins theme/bs/*.ins
TESTS=test/mu/*.pdf
MAKES=guide/mu/Makefile theme/mu/Makefile logo/mu/Makefile Makefile \
	test/mu/Makefile
USEREXAMPLE_SOURCES=example/mu/Makefile example/mu/example.dtx \
	example/mu/*.ins
	theme/bs/Makefile logo/bs/Makefile
USEREXAMPLE_SOURCES=example/mu/Makefile example/mu/example.dtx example/mu/*.ins \
	example/bs/Makefile example/bs/example.dtx example/bs/standard.ins
USEREXAMPLES=example/mu/econ-lualatex.pdf \
	example/mu/econ-pdflatex.pdf example/mu/fi-lualatex.pdf \
	example/mu/fi-pdflatex.pdf example/mu/fsps-lualatex.pdf \
@@ -26,22 +24,27 @@ USEREXAMPLES=example/mu/econ-lualatex.pdf \
	example/mu/med-pdflatex.pdf example/mu/ped-lualatex.pdf \
	example/mu/ped-pdflatex.pdf example/mu/phil-lualatex.pdf \
	example/mu/phil-pdflatex.pdf example/mu/sci-lualatex.pdf \
	example/mu/sci-pdflatex.pdf
	example/mu/sci-pdflatex.pdf \
	example/bs/standard-pdflatex.pdf example/bs/standard-lualatex.pdf
DEVEXAMPLES=logo/DESCRIPTION logo/EXAMPLE/DESCRIPTION \
	logo/mu/DESCRIPTION theme/EXAMPLE/DESCRIPTION \
	theme/mu/DESCRIPTION theme/DESCRIPTION example/DESCRIPTION \
	example/EXAMPLE/DESCRIPTION example/mu/DESCRIPTION \
	example/mu/resources/DESCRIPTION guide/DESCRIPTION \
	guide/EXAMPLE/DESCRIPTION guide/mu/DESCRIPTION \
	guide/mu/resources/DESCRIPTION test/DESCRIPTION \
	test/EXAMPLE/DESCRIPTION test/mu/DESCRIPTION
	guide/mu/resources/DESCRIPTION \
	theme/bs/DESCRIPTION logo/bs/DESCRIPTION example/bs/DESCRIPTION \
	example/bs/resources/DESCRIPTION
EXAMPLES=$(USEREXAMPLES) $(DEVEXAMPLES)
MISCELLANEOUS=guide/mu/guide.bib \
	guide/mu/guide.dtx guide/mu/*.ins guide/mu/resources/cog.pdf \
  guide/mu/resources/vader.pdf guide/mu/resources/yoda.pdf \
	$(USEREXAMPLES:.pdf=.tex) \
	example/mu/resources/jabberwocky-dark.png \
	example/mu/resources/jabberwocky-light.png README.md
	example/mu/resources/jabberwocky-light.png \
	example/bs/resources/jabberwocky-dark.png \
	example/bs/resources/jabberwocky-light.png \
	README.md
RESOURCES=$(THEMEFILES) $(LOGOS) $(LOGOSOURCES)
SOURCES=$(DTXFILES) $(INSFILES) LICENSE.tex
AUXFILES=fibeamer.aux fibeamer.log fibeamer.toc fibeamer.ind \
@@ -85,9 +88,6 @@ docs:
$(SUBMAKES):
	make -C $@ all

# This pseudo-target performs the tests.
tests: base $(SUBMAKES_TEST)

# This pseudo-target creates the distribution archive.
dist: dist-implode complete
	make $(TDSARCHIVE) $(DISTARCHIVE) $(CTANARCHIVE)
@@ -117,24 +117,24 @@ $(TDSARCHIVE):
	mv "$$DIR"/$@ $@ && rm -rf "$$DIR"

# This target generates a distribution file.
$(DISTARCHIVE): $(SOURCES) $(RESOURCES) $(MAKES) $(TESTS) \
$(DISTARCHIVE): $(SOURCES) $(RESOURCES) $(MAKES) \
	$(USEREXAMPLE_SOURCES) $(DOCS) $(PDFSOURCES) $(MISCELLANEOUS) \
	$(EXAMPLES) $(VERSION)
	DIR=`mktemp -d` && \
	cp --verbose $(TDSARCHIVE) "$$DIR" && \
	cp --parents --verbose $^ "$$DIR" && \
	(cd "$$DIR" && zip -r -v -nw $@ *) && \
	(cd "$$DIR" && zip --symlinks -r -v -nw $@ *) && \
	mv "$$DIR"/$@ . && rm -rf "$$DIR"

# This target generates a CTAN distribution file.
$(CTANARCHIVE): $(SOURCES) $(MAKES) $(TESTS) $(EXAMPLES) \
$(CTANARCHIVE): $(SOURCES) $(MAKES) $(EXAMPLES) \
	$(MISCELLANEOUS) $(DOCS) $(VERSION) $(LOGOSOURCES)
	DIR=`mktemp -d` && mkdir -p "$$DIR/fibeamer" && \
	cp --verbose $(TDSARCHIVE) "$$DIR" && \
	cp --parents --verbose $^ "$$DIR/fibeamer" && \
	printf '.PHONY: implode\nimplode:\n' > \
		"$$DIR/fibeamer/example/mu/Makefile" && \
	(cd "$$DIR" && zip -r -v -nw $@ *) && \
	(cd "$$DIR" && zip --symlinks -r -v -nw $@ *) && \
	mv "$$DIR"/$@ . && rm -rf "$$DIR"

# This pseudo-target installs the logo and theme files - as well as
−163 KiB
Loading image diff...
+0 −0
Original line number Diff line number Diff line
../../mu/resources/jabberwocky-dark.png
 No newline at end of file
−163 KiB
Loading image diff...
Loading