Change versioning and save binaries as CI artifacts

For development versions of Stockfish, the version will now look like
dev-20221107-dca9a0533
indicating a development version, the date of the last commit,
and the git SHA of that commit. If git is not available,
the fallback is the date of compilation. Releases will continue to be
versioned as before.

Additionally, this PR extends the CI to create binary artifacts,
i.e. pushes to master will automatically build Stockfish and upload
the binaries to github.

closes https://github.com/official-stockfish/Stockfish/pull/4220

No functional change
This commit is contained in:
disservin
2022-11-06 16:17:17 +01:00
committed by Joost VandeVondele
parent ad2aa8c06f
commit e048d11825
4 changed files with 163 additions and 17 deletions
+4 -1
View File
@@ -10,6 +10,9 @@ on:
- master
- tools
jobs:
Binaries:
if: github.ref == 'refs/heads/master'
uses: ./.github/workflows/stockfish_binaries.yml
Stockfish:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
@@ -113,7 +116,7 @@ jobs:
working-directory: src
shell: ${{ matrix.config.shell }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0