roll back and change default shell to bash
Release Alpine apk for ARM64v8 / compilation-arm64v8 (push) Failing after 1m22s
Details
Release Alpine apk for ARM64v8 / compilation-arm64v8 (push) Failing after 1m22s
Details
This commit is contained in:
parent
5d26724513
commit
1c08a452a1
|
@ -14,7 +14,7 @@ jobs:
|
||||||
run: apk -U upgrade
|
run: apk -U upgrade
|
||||||
- name: Install needed tools
|
- name: Install needed tools
|
||||||
shell: sh
|
shell: sh
|
||||||
run: apk add bash git wget curl nodejs sshfs alpine-sdk abuild sudo pup
|
run: apk add bash git wget curl nodejs sshfs alpine-sdk abuild sudo pup shadow
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up environment and users
|
- name: Set up environment and users
|
||||||
|
@ -29,6 +29,7 @@ jobs:
|
||||||
chmod 440 /etc/sudoers
|
chmod 440 /etc/sudoers
|
||||||
mkdir -p /var/cache/distfiles
|
mkdir -p /var/cache/distfiles
|
||||||
chmod a+w /var/cache/distfiles
|
chmod a+w /var/cache/distfiles
|
||||||
|
chsh -s /bin/bash
|
||||||
su - runner -c 'mkdir ~/.abuild'
|
su - runner -c 'mkdir ~/.abuild'
|
||||||
echo "setup done"
|
echo "setup done"
|
||||||
- name: Set up keys
|
- name: Set up keys
|
||||||
|
@ -40,17 +41,16 @@ jobs:
|
||||||
cp -r srcpkgs /home/runner/ && chown -R runner:runner /home/runner/srcpkgs
|
cp -r srcpkgs /home/runner/ && chown -R runner:runner /home/runner/srcpkgs
|
||||||
- name: Determine packages to build
|
- name: Determine packages to build
|
||||||
run: |
|
run: |
|
||||||
su - runner -c "pwd; ls -lah --color"
|
su - runner -c "curl --silent https://static.itmodulo.eu/dl/repo/alpine/latest-stable/main/aarch64/ | pup 'a text{}' | grep \.apk > ~/repo.txt"
|
||||||
su - runner -c "curl --silent https://static.itmodulo.eu/dl/repo/alpine/latest-stable/main/aarch64/ | pup 'a text{}' | grep \.apk > /home/runner/repo.txt"
|
su - runner -c "touch ~/local.txt"
|
||||||
su - runner -c "touch /home/runner/local.txt"
|
su - runner -c 'cd ~/srcpkgs; for i in ./* ; do printf "%s-%s-r%s.apk\n" "$(echo $i | cut -d '/' -f 2)" "$(cat $i/APKBUILD | grep pkgver | grep -v '\$' | cut -d '=' -f 2 )" "$(cat $i/APKBUILD | grep pkgrel | grep -v '\$' | cut -d '=' -f 2 )" >> ~/local.txt; done'
|
||||||
su - runner -c 'for i in /home/runner/srcpkgs/*; do printf "%s-%s-r%s.apk\n" "$(echo $i | cut -d '/' -f 5)" "echo $(cat $i/APKBUILD | grep pkgver | grep -v '\$' | cut -d '=' -f 2 )" "echo $(cat $i/APKBUILD | grep pkgrel | grep -v '\$' | cut -d '=' -f 2 )" >> /home/runner/local.txt; done'
|
su - runner -c 'echo "LOCAL:"; cat ~/local.txt'
|
||||||
su - runner -c 'echo "LOCAL:"; cat /home/runner/local.txt'
|
su - runner -c "grep -Fvxf ~/repo.txt ~/local.txt > ~/missing.txt"
|
||||||
su - runner -c "grep -Fvxf /home/runner/repo.txt /home/runner/local.txt > /home/runner/missing.txt"
|
su - runner -c 'echo "MISSING:"; cat ~/missing.txt'
|
||||||
su - runner -c 'echo "MISSING:"; cat /home/runner/missing.txt'
|
su - runner -c "sed -i -E 's/-[0-9a-z.]+-r[0-9]+\.apk//g' missing.txt"
|
||||||
su - runner -c "sed -i -E 's/-[0-9a-z.]+-r[0-9]+\.apk//g' /home/runner/missing.txt"
|
su - runner -c "for i in $(cat missing.txt); do sed -i -E 's/'"${i}"-[0-9a-z.]+-r[0-9]+\.apk'//g' ~/repo.txt; done;"
|
||||||
su - runner -c "for i in $(cat /home/runner/missing.txt); do sed -i -E 's/'"${i}"-[0-9a-z.]+-r[0-9]+\.apk'//g' /home/runner/repo.txt; done"
|
su - runner -c 'echo "REPO:"; cat ~/repo.txt'
|
||||||
su - runner -c 'echo "REPO:"; cat /home/runner/repo.txt'
|
su - runner -c 'echo "WILL BUILD:"; cat ~/missing.txt'
|
||||||
su - runner -c 'echo "WILL BUILD:"; cat /home/runner/missing.txt'
|
|
||||||
|
|
||||||
- name: Compile missing in sequence
|
- name: Compile missing in sequence
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue