mirror of https://github.com/built-aur/packages
ci(long-built): fix
This commit is contained in:
parent
15f88d767b
commit
f0b10c43a5
|
@ -13,6 +13,8 @@
|
||||||
# Outputs
|
# Outputs
|
||||||
# finished - build ended?
|
# finished - build ended?
|
||||||
|
|
||||||
|
set -e -x
|
||||||
|
|
||||||
free_space() {
|
free_space() {
|
||||||
echo "::group::Stage: Free space on GitHub Runner..."
|
echo "::group::Stage: Free space on GitHub Runner..."
|
||||||
sudo rm -rf /usr/share/dotnet
|
sudo rm -rf /usr/share/dotnet
|
||||||
|
@ -39,11 +41,7 @@ download_progress() {
|
||||||
|
|
||||||
upload_progress() {
|
upload_progress() {
|
||||||
echo "::group::Stage: Downloading progress artifact..."
|
echo "::group::Stage: Downloading progress artifact..."
|
||||||
SSHPASS="${SFTP_PASSWORD}" sshpass -e rsync -e ssh -avL "${SFTP_USER}@${SFTP_HOST}:${SFTP_CWD}/stage/" progress.tar.zst
|
SSHPASS="${SFTP_PASSWORD}" sshpass -e rsync -e ssh -avL "${SFTP_USER}@${SFTP_HOST}:${SFTP_CWD}/stage/" progress/progress.tar.zst
|
||||||
echo "::endgroup::"
|
|
||||||
|
|
||||||
echo "::group::Stage: Moving progress archive into input directory..."
|
|
||||||
mv progress.tar.zst input
|
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,6 +78,8 @@ if [ -z "$(ls -A output)" ]
|
||||||
then
|
then
|
||||||
# Directory is empty
|
# Directory is empty
|
||||||
echo "::set-output name=finished::false"
|
echo "::set-output name=finished::false"
|
||||||
|
|
||||||
|
upload_progress
|
||||||
else
|
else
|
||||||
echo "Successfully built package"
|
echo "Successfully built package"
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@ const shell = async (commandLine: string, args?: Array<string>, options?: ExecOp
|
||||||
const mount = (directory: string): Array<string> => ['--mount', `type=bind,source=${process.cwd()}/${directory},target=/mnt/${directory}`];
|
const mount = (directory: string): Array<string> => ['--mount', `type=bind,source=${process.cwd()}/${directory},target=/mnt/${directory}`];
|
||||||
|
|
||||||
await core.group<void>('Stage: Running docker container...', () =>
|
await core.group<void>('Stage: Running docker container...', () =>
|
||||||
shell('docker', ['run', '-e', 'TIMEOUT=330', '-e', `BUILD_ARCH=${input.arch}`, ...mount('input'), ...mount('output'), ...mount('progress'), input.imageTag]));
|
shell('docker', ['run', '-e', 'TIMEOUT=300', '-e', `BUILD_ARCH=${input.arch}`, ...mount('input'), ...mount('output'), ...mount('progress'), input.imageTag]));
|
||||||
|
|
||||||
if (readdirSync('output').length !== 0) {
|
if (readdirSync('output').length !== 0) {
|
||||||
console.log('Stage: Successfully built package');
|
console.log('Stage: Successfully built package');
|
||||||
|
|
Loading…
Reference in New Issue