mirror of
https://github.com/azahar-emu/azahar.git
synced 2025-04-28 13:47:59 +03:00

Some checks are pending
citra-build / source (push) Waiting to run
citra-build / linux (appimage) (push) Waiting to run
citra-build / linux (fresh) (push) Waiting to run
citra-build / macos (arm64) (push) Waiting to run
citra-build / macos (x86_64) (push) Waiting to run
citra-build / macos-universal (push) Blocked by required conditions
citra-build / windows (msvc) (push) Waiting to run
citra-build / windows (msys2) (push) Waiting to run
citra-build / android (push) Waiting to run
citra-build / ios (push) Waiting to run
citra-format / clang-format (push) Waiting to run
citra-transifex / transifex (push) Waiting to run
Closes #779
24 lines
762 B
Bash
Executable file
24 lines
762 B
Bash
Executable file
#!/bin/bash -ex
|
|
|
|
GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
|
|
GITREV="`git show -s --format='%h'`"
|
|
REV_NAME="azahar-unified-source-${GITDATE}-${GITREV}"
|
|
|
|
if [ "$GITHUB_REF_TYPE" = "tag" ]; then
|
|
REV_NAME="azahar-unified-source-$GITHUB_REF_NAME"
|
|
fi
|
|
|
|
COMPAT_LIST='dist/compatibility_list/compatibility_list.json'
|
|
|
|
mkdir artifacts
|
|
|
|
pip3 install git-archive-all
|
|
touch "${COMPAT_LIST}"
|
|
git describe --abbrev=0 --always HEAD > GIT-COMMIT
|
|
git describe --tags HEAD > GIT-TAG || echo 'unknown' > GIT-TAG
|
|
git archive-all --include "${COMPAT_LIST}" --include GIT-COMMIT --include GIT-TAG --force-submodules artifacts/"${REV_NAME}.tar"
|
|
|
|
cd artifacts/
|
|
xz -T0 -9 "${REV_NAME}.tar"
|
|
sha256sum "${REV_NAME}.tar.xz" > "${REV_NAME}.tar.xz.sha256sum"
|
|
cd ..
|