-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from coder5506/master
automated builds
- Loading branch information
Showing
11 changed files
with
93 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20.9.0 | ||
20.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |