Use Github Actions instead of Travis

Moved MSVC to Github Actions as well.
This commit is contained in:
Pengfei
2021-06-26 19:30:34 +08:00
parent 3d3b51bb98
commit 412aeaa0d4
27 changed files with 453 additions and 146 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash -ex
# Copy documentation
cp license.txt "$REV_NAME"
cp README.md "$REV_NAME"
cp dist/threeSDumper.gm9 "$REV_NAME/dist"
7z a "$REV_NAME.zip" $REV_NAME
# move the compiled archive into the artifacts directory to be uploaded by gh action releases
mv "$REV_NAME.zip" artifacts/
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash -ex
GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
GITREV="`git show -s --format='%h'`"
if [[ $GITHUB_REF == refs/tags/* ]]; then
GITNAME="${GITHUB_REF:10}"
else
GITNAME="${GITDATE}-${GITREV}"
fi
mkdir -p artifacts