mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-20 23:01:16 +00:00
Echo seed
This commit is contained in:
parent
d9844b7a9d
commit
b19826dd08
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -137,8 +137,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Get the first 8 characters of the SHA (enough for a decent seed)
|
# Get the first 8 characters of the SHA (enough for a decent seed)
|
||||||
SHA_PREFIX=$(echo "${{ github.sha }}" | cut -c 1-8)
|
SHA_PREFIX=$(echo "${{ github.sha }}" | cut -c 1-8)
|
||||||
|
ENTROPY_SEED=$((16#$SHA_PREFIX + ${{ matrix.instance }}))
|
||||||
|
|
||||||
python3 tools/entropy.py $((16#$SHA_PREFIX + ${{ matrix.instance }})) > entropy.h
|
echo "Seed: $ENTROPY_SEED"
|
||||||
|
python3 tools/entropy.py $ENTROPY_SEED > entropy.h
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user