Skip to content

Commit

Permalink
Merge pull request #43 from coder5506/master
Browse files Browse the repository at this point in the history
automated builds
  • Loading branch information
Alistair-Crompton authored Dec 20, 2023
2 parents a80d134 + 5264b14 commit 76cdf0f
Show file tree
Hide file tree
Showing 11 changed files with 93 additions and 34 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
on: [push]
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: make
- uses: actions/upload-artifact@v3
with:
path: releases/*.deb
2 changes: 1 addition & 1 deletion DGTCentaurMods/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: DGTCentaurMods
Description: DGTCentaurMods Alistair's version
Version: 23121101
Version: $Version$
Architecture: armhf
Maintainer: Alistair Crompton
Depends: ntp, libopenjp2-7-dev, libtiff5, python3-pip, git, authbind, libopenjp2-7, libopenblas-dev, python3-dbus, python3-gi, python3-gi-cairo, gir1.2-gtk-3.0
Expand Down
10 changes: 10 additions & 0 deletions DGTCentaurMods/GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.PHONY:
.PHONY: all clean distclean

all clean:
$(MAKE) -C opt/DGTCentaurMods $@

distclean:
$(MAKE) -C opt/DGTCentaurMods $@
find . -name .DS_Store -delete
find . -name fen.log -delete
18 changes: 0 additions & 18 deletions DGTCentaurMods/opt/DGTCentaurMods/.editorconfig

This file was deleted.

15 changes: 15 additions & 0 deletions DGTCentaurMods/opt/DGTCentaurMods/GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.PHONY:
.PHONY: all clean distclean

all clean:
$(MAKE) -C web/client $@

distclean:
$(MAKE) -C web/client $@
$(RM) config/centaur.ini
$(RM) db/centaur.db
$(RM) -R engines/books
$(RM) -R engines/maia_weights
$(RM) -R engines/personalities
py3clean .
chmod ugo=rwx engines
5 changes: 0 additions & 5 deletions DGTCentaurMods/opt/DGTCentaurMods/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion DGTCentaurMods/opt/DGTCentaurMods/web/client/.editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[*.{css,js,ts,vue}]
[*.{css,html,js,ts,vue}]
indent_size = 2
indent_style = space
2 changes: 1 addition & 1 deletion DGTCentaurMods/opt/DGTCentaurMods/web/client/.node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.9.0
20.10.0
12 changes: 12 additions & 0 deletions DGTCentaurMods/opt/DGTCentaurMods/web/client/GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.PHONY:
.PHONY: all clean distclean

all:
npm ci
npm run build

clean: distclean
$(RM) -R dist

distclean:
$(RM) -R node_modules
8 changes: 0 additions & 8 deletions DGTCentaurMods/opt/DGTCentaurMods/web/client/Makefile

This file was deleted.

36 changes: 36 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.PHONY:
.PHONY: all clean distclean package release stage

basename := DGTCentaurMods
version := $(shell git describe --abbrev=0 --tags | tr --delete [A-Z])
package := $(basename)_A.alpha-ON$(version)
tmp := $(shell mktemp -d)
stage := $(tmp)/$(package)
deb := releases/$(package).deb

package: all stage distclean release
sudo $(RM) -R $(tmp)

all clean:
$(MAKE) -C $(basename) $@
$(RM) -R $(dir $(deb))

stage:
mkdir $(stage)
cp -R $(foreach d,DEBIAN etc opt,$(basename)/$d) $(stage)
cp $(basename)/GNUmakefile $(stage)
sed -e 's/\$$Version\$$/$(version)/' \
$(basename)/DEBIAN/control > $(stage)/DEBIAN/control
sed -e 's/TAG_RELEASE.*/TAG_RELEASE = "ON$(version)"/' \
$(basename)/opt/DGTCentaurMods/consts/consts.py > \
$(stage)/opt/DGTCentaurMods/consts/consts.py

distclean:
$(MAKE) -C $(stage) distclean
$(RM) $(stage)/GNUmakefile
$(RM) $(deb)

release:
sudo chown -R root:root $(stage)/etc
mkdir -p $(dir $(deb))
dpkg-deb -Zxz --build $(stage) $(deb)

0 comments on commit 76cdf0f

Please sign in to comment.