From 54cd8c21f7a460c62b989b53c6b79cb55f5c8de8 Mon Sep 17 00:00:00 2001 From: y4ssi Date: Mon, 17 Oct 2022 17:53:36 -0300 Subject: [PATCH 1/5] Removed from the Gitian role (Ansible) the tasks related to reboot --- roles/gitian/tasks/main.yml | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/roles/gitian/tasks/main.yml b/roles/gitian/tasks/main.yml index b1bcd77..a54e5f7 100644 --- a/roles/gitian/tasks/main.yml +++ b/roles/gitian/tasks/main.yml @@ -127,30 +127,6 @@ force: yes become_user: "{{ gitian_user }}" -- name: Reboot. - shell: sleep 3 && shutdown -r now "Rebooting..." - async: 1 - poll: 0 - ignore_errors: true - become: yes - -- name: Figure out the Vagrant VM's SSH port number. - local_action: "shell vagrant ssh-config zcash-build | grep Port | awk {'print $2'}" - register: vagrant_ssh_port - become: no - -- name: Wait for virtual machine to come back. - local_action: wait_for - host={{ ansible_host | default('localhost') }} - port={{ vagrant_ssh_port.stdout | int }} - delay=30 - state=started - become: no - -- name: Wait extra time for VM to come back up. - pause: - seconds: 10 - - name: Set Git username. command: "git config --global user.name \"{{ git_name }}\"" become_user: "{{ gitian_user }}" From b112809287efc0042063847c4e239800757c2322 Mon Sep 17 00:00:00 2001 From: sasha Date: Thu, 20 Oct 2022 15:21:49 -0700 Subject: [PATCH 2/5] Bump disk size to 64GB in `Vagrantfile` I and others have gotten errors directly indicative and potentially indicative of running out of space during the build. --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index e1b1821..f24a0a5 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -8,7 +8,7 @@ Vagrant.configure(2) do |config| } config.ssh.forward_agent = true - config.disksize.size = '32GB' + config.disksize.size = '64GB' config.vm.define 'zcash-build', autostart: false do |gitian| gitian.vm.box = "debian/bullseye64" gitian.vm.box_version = "11.20220328.1" From ebdedae231d461a6f2622eac9e043d25dafc7504 Mon Sep 17 00:00:00 2001 From: y4ssi Date: Mon, 22 Jan 2024 21:05:23 -0700 Subject: [PATCH 3/5] Ansible cleanup (#152) * Update keys.yml * simplifying ansible --- roles/common/defaults/main.yml | 2 +- roles/common/tasks/main.yml | 4 ---- roles/gitian/tasks/keys.yml | 5 ++++- roles/gitian/tasks/main.yml | 9 +++------ 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/roles/common/defaults/main.yml b/roles/common/defaults/main.yml index 101c373..017acae 100644 --- a/roles/common/defaults/main.yml +++ b/roles/common/defaults/main.yml @@ -1,6 +1,6 @@ --- zcash_swapfile_size: 1G -zcash_vm_swappiness: 1 +zcash_vm_swappiness: 0 zcash_common_packages: - apt-show-versions - apt-transport-https diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 5488975..7ed7da3 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -2,9 +2,5 @@ - include_tasks: repartition.yml - include_tasks: update_everything.yml - include_tasks: packages.yml -- include_tasks: make_swap.yml - include_tasks: add_github_ssh_hostkey.yml - include_tasks: hostname.yml -- include_tasks: motd.yml -- include_tasks: vim.yml -- include_tasks: auto_upgrades.yml diff --git a/roles/gitian/tasks/keys.yml b/roles/gitian/tasks/keys.yml index 3e37eb4..59f673b 100644 --- a/roles/gitian/tasks/keys.yml +++ b/roles/gitian/tasks/keys.yml @@ -8,11 +8,13 @@ group: "{{ gitian_user }}" mode: "0644" with_items: "{{ zcash_developer_pubkeys }}" - + ignore_errors: true + - name: Import Zcash developer public keys. command: "gpg --import /tmp/{{ item.id }}.asc" become_user: "{{ gitian_user }}" with_items: "{{ zcash_developer_pubkeys }}" + ignore_errors: true - name: Set Zcash developer public keys to ultimately trusted. shell: > @@ -23,3 +25,4 @@ become_user: "{{ gitian_user }}" args: executable: /bin/bash + ignore_errors: true diff --git a/roles/gitian/tasks/main.yml b/roles/gitian/tasks/main.yml index a54e5f7..f5a2b6d 100644 --- a/roles/gitian/tasks/main.yml +++ b/roles/gitian/tasks/main.yml @@ -72,8 +72,8 @@ - name: Add cgroup fs for LXC. lineinfile: dest: /etc/fstab - regexp: '^cgroup' - line: 'cgroup /sys/fs/cgroup cgroup defaults 0 0' + regexp: "^cgroup" + line: "cgroup /sys/fs/cgroup cgroup defaults 0 0" state: present - name: Install profile with environment variables. @@ -108,9 +108,6 @@ force: yes become_user: "{{ gitian_user }}" -- include_tasks: keys.yml - tags: keys - - name: Clone git repository for Zcash. git: repo: "{{ zcash_git_repo_url }}" @@ -128,7 +125,7 @@ become_user: "{{ gitian_user }}" - name: Set Git username. - command: "git config --global user.name \"{{ git_name }}\"" + command: 'git config --global user.name "{{ git_name }}"' become_user: "{{ gitian_user }}" - name: Set Git email address. From 24e30fedb181503fa7838b594be4fe3eeae02903 Mon Sep 17 00:00:00 2001 From: y4ssi Date: Mon, 19 Feb 2024 17:12:44 -0700 Subject: [PATCH 4/5] Bookworm release + Github Action CI (#153) * Bookworm release + GithubAction CI --------- Co-authored-by: Daira-Emma Hopwood --- .github/workflows/CI.yaml | 261 ++++++++++++++++++ roles/gitian/templates/gitian-build.sh | 6 +- .../gitian/templates/gitian-parallel-build.sh | 6 +- 3 files changed, 271 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/CI.yaml diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 0000000..4fec825 --- /dev/null +++ b/.github/workflows/CI.yaml @@ -0,0 +1,261 @@ +name: Gitian CI + +on: + pull_request: + types: + - labeled + +jobs: + build-gitian: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: 'Set up Cloud SDK' + uses: 'google-github-actions/setup-gcloud@v2' + with: + version: '>= 363.0.0' + + - name: Build Gitian + id: gitian + shell: bash + run: | + sudo apt -qq update; sudo apt install wget openssh-client git -y >/dev/null + echo ${{ secrets.GCP_SA_KEY }} | base64 -d > json.json + gcloud auth activate-service-account --key-file=json.json + + export random=$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 12; echo;) + + for i in $(gcloud compute os-login ssh-keys list --format="table[no-heading](value.fingerprint)"); do + echo "removing SSH key $i" + gcloud compute os-login ssh-keys remove --key $i || echo "failed to remove key" + done + + gcloud compute instances create test-gitian-$random --image-family=debian-11 --image-project=debian-cloud --machine-type=c2-standard-16 --project=${{ secrets.GCP_PROJECT_ID_PROD }} --zone=us-central1-a --no-address --network=vpc-${{ secrets.GCP_PROJECT_ID_PROD }} --subnet=us-central1-zcash --tags=zcash --service-account=vm-iap@${{ secrets.GCP_PROJECT_ID_PROD }}.iam.gserviceaccount.com --metadata=enable-oslogin=TRUE --scopes=cloud-platform --enable-nested-virtualization --boot-disk-size=200GB + + export counter=1 + while [[ $(gcloud compute ssh --zone "us-central1-a" "test-gitian-$random" --tunnel-through-iap --project "${{ secrets.GCP_PROJECT_ID_PROD }}" --command="ls -la" &>/dev/null || echo "re-try") == "re-try" && counter -lt 60 ]] + do + echo "attempt number: $counter" + export counter=$((counter+1)) + if [ $counter -eq 60 ]; then gcloud compute instances delete "test-gitian-$random" --project "${{ secrets.GCP_PROJECT_ID_PROD }}" --zone "us-central1-a" --delete-disks=all; exit 1; fi + sleep 5 + done + + IFS='/' read -r -a array <<< "${{ github.event.label.name }}" + + git clone -b ${array[2]} https://github.com/${array[0]}/${array[1]}.git + cd zcash/contrib/gitian-descriptors + wget -c -q https://github.com/mikefarah/yq/releases/download/v4.28.2/yq_linux_amd64 + echo "7e0d59c65be5054a14ff2a76eb12c2d4ec3e5bc2f1dfa03c7356bb35b50bbf41 yq_linux_amd64" | shasum -a 256 -c + chmod +x yq_linux_amd64 + export ZCASH_GITIAN_VERSION=$(cat gitian-linux-parallel.yml | ./yq_linux_amd64 .name) + cd ../../.. + + + cat < ./script.sh + #!/bin/bash + apt -qq update; + apt install ca-certificates curl gnupg lsb-release software-properties-common wget git vagrant python3-venv direnv python3-pip linux-headers-\$(uname -r) ansible -y >/dev/null; + mkdir -m 0755 -p /etc/apt/keyrings; + curl -fsSL https://download.docker.com/linux/debian/gpg -o gpg.asc + echo "1500c1f56fa9e26b9b8f42452a553675796ade0807cdce11975eb98170b3a570 gpg.asc" | shasum -a 256 -c; + sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg --yes < gpg.asc; + echo "deb [arch=\$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null + apt -qq update; + apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y >/dev/null; + apt-add-repository "deb http://download.virtualbox.org/virtualbox/debian \$(lsb_release -sc) contrib"; + wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc; + echo "49e6801d45f6536232c11be6cdb43fa8e0198538d29d1075a7e10165e1fbafe2 oracle_vbox_2016.asc" | shasum -a 256 -c; + apt-key add oracle_vbox_2016.asc; + apt -qq update + apt install virtualbox-6.1 -y >/dev/null; + eval "\$(direnv hook bash)"; + cd source + cp .env.example .env + cp .envrc.example .envrc + /usr/bin/python3 -m venv ./local/python_venv; + echo "load_prefix local/python_venv" >> .envrc; + export VERSION="${array[2]}" + echo "ZCASH_VERSION=\$VERSION" >> .env; + echo "ZCASH_GIT_REPO_URL=https://github.com/${array[0]}/${array[1]}" >> .env; + cat .env + direnv allow; + /sbin/vboxconfig; + vagrant plugin install --local; + vagrant plugin install --local; + gpg --quick-generate-key --batch --passphrase '' "Lyra Silvertongue (zcash gitian) " + echo "GPG_KEY_ID=\$(gpg --list-keys --with-fingerprint --with-colons | grep fpr: | head -n 1 | sed 's/fpr://g' | sed 's/://g')" >> .env; + echo "GPG_KEY_NAME=lyra.silvertongue" >> .env; + git config --global user.name "Lyra Silvertongue" + git config --global user.email "lyra.silvertongue@ox.ac.brytain" + direnv allow; + direnv exec \$(pwd) vagrant up zcash-build; + vagrant ssh zcash-build -c "gpg --quick-generate-key --batch --passphrase '' \"Lyra Silvertongue (zcash gitian) \" || echo ''" + vagrant ssh zcash-build -c ./gitian-parallel-build.sh || exit 1 + vagrant ssh zcash-build -c "head -n 8 gitian.sigs/\$VERSION*/lyra.silvertongue/*.assert" > assert.txt + tr -d \$'\r' < assert.txt > assert2.txt + echo "#### sigs ####" + for i in \$(cat assert2.txt | grep -E "zcash-*" | grep -v git: | sed 's/ //g' | sed 's/ /-->/g'); do + echo \$i + done + export OS=\$(vagrant ssh zcash-build -c "ls zcash-binaries/\$VERSION" | tr -d '\r') + for i in \$OS; do vagrant ssh zcash-build -c "mkdir \$i; tar Cxvzf \$i zcash-binaries/*/\$i/zcash-*-linux64.tar.gz"; done + + # get keys + gsutil -q rm -r gs://${{ secrets.GCP_PROJECT_ID_PROD }}-apt-packages/127.0.0.1 || echo "" + gsutil -q cp gs://${{ secrets.GCP_PROJECT_ID_PROD }}-apt-packages/encrypted_gpg.kms \$HOME/encrypted_gpg.kms + gsutil -q cp gs://${{ secrets.GCP_PROJECT_ID_PROD }}-apt-packages/public.asc \$HOME/public.asc + current_dir=\$(pwd) + cd \$HOME + gcloud kms decrypt \ + --key gpg \ + --keyring gpg \ + --location global \ + --plaintext-file private.pgp \ + --ciphertext-file encrypted_gpg.kms + cd \$current_dir + gpg --import \$HOME/private.pgp + vagrant scp :gitian.sigs . + for i in \$OS; + do + mkdir -p debs/\$i; + mkdir -p ./\$i-extract + vagrant ssh zcash-build -c "mkdir /home/vagrant/"\$i"-extract"; + vagrant ssh zcash-build -c "tar -xvf /home/vagrant/zcash-binaries/"\$VERSION"/"\$i"/zcash-*-linux64.tar.gz -C /home/vagrant/"\$i"-extract"; + + docker run -d --name \$i debian:\$i bash -c "while true; do sleep 2; done"; + + docker exec \$i bash -c "mkdir -p /home/vagrant/\$i-deb-build && cd /home/vagrant/\$i-deb-build && apt -qq update && apt install git dpkg-dev lintian -y >/dev/null && git clone -b ${array[2]} https://github.com/${array[0]}/${array[1]}.git ."; + + vagrant scp :/home/vagrant/\$i-extract/zcash-*/bin/zcash-tx ./\$i-extract/ + vagrant scp :/home/vagrant/\$i-extract/zcash-*/bin/zcash-fetch-params ./\$i-extract/ + vagrant scp :/home/vagrant/\$i-extract/zcash-*/bin/zcashd ./\$i-extract/ + vagrant scp :/home/vagrant/\$i-extract/zcash-*/bin/zcash-cli ./\$i-extract/ + vagrant scp :/home/vagrant/\$i-extract/zcash-*/bin/zcashd-wallet-tool ./\$i-extract/ + docker cp ./\$i-extract \$i:/home/vagrant/\$i-deb-build/ + docker exec -w /home/vagrant/\$i-deb-build \$i bash -c "rm -rf src && mv \$i-extract src && ./zcutil/build-debian-package.sh" + docker cp \$i:/tmp/zcbuild ./debs/\$i + docker exec -it \$i bash -c "dpkg -i /tmp/zcbuild/*.deb" + echo #### zcashd --version #### + docker exec -it \$i bash -c "zcashd --version" + done + vagrant scp :/home/vagrant/zcash-binaries ./ + for i in \$OS; + do + cd ./zcash-binaries/\$VERSION/\$i + for j in \$(ls *linux64.tar.gz); do + mv \$j \$(echo \$j | sed 's/.tar.gz/-debian-'\$i'.tar.gz/g') + done + for j in \$(ls *debug.tar.gz); do + mv \$j \$(echo \$j | sed 's/.tar.gz/-debian-'\$i'.tar.gz/g') + done + gpg -u sysadmin@z.cash --armor --digest-algo SHA256 --detach-sign *debug-debian-\$i.tar.gz + gpg -u sysadmin@z.cash --armor --digest-algo SHA256 --detach-sign *linux64-debian-\$i.tar.gz + cd \$current_dir + done + export final_version=\$(cat assert2.txt | awk '{print \$2}' | grep "desc.yml" | head -n 1 | sed 's/-desc.yml//g') + gsutil -q -m rsync -r ./debs gs://${{ secrets.GCP_PROJECT_ID_PROD }}-apt-packages/debs + gsutil -q -m rsync -r ./zcash-binaries gs://${{ secrets.GCP_PROJECT_ID_PROD }}-apt-packages/zcash-binaries + apt install aptly -y >/dev/null + + # generate apt + mkdir aptserver + cd aptserver + gsutil -q -m cp -r gs://${{ secrets.GCP_PROJECT_ID_PROD }}-apt-server/pool/main/z/zcash/ . + cd zcash + cp -a ../../debs/buster/zcbuild/*.deb \$final_version-amd64-buster.deb + cp -a ../../debs/bullseye/zcbuild/*.deb \$final_version-amd64-bullseye.deb + cp -a ../../debs/bookworm/zcbuild/*.deb \$final_version-amd64-bookworm.deb + + ls \$final_version-amd64-buster.deb || exit 1 + ls \$final_version-amd64-bullseye.deb || exit 1 + ls \$final_version-amd64-bookworm.deb || exit 1 + + aptly repo create --distribution buster --comment "" --component main zcash_buster_amd64_repo + aptly repo create --distribution bullseye --comment "" --component main zcash_bullseye_amd64_repo + aptly repo create --distribution bookworm --comment "" --component main zcash_bookworm_amd64_repo + aptly repo create --distribution stretch --comment "" --component main zcash_stretch_amd64_repo + for i in \$(ls *.deb | grep buster); do + aptly repo add zcash_buster_amd64_repo \$i + done + for i in \$(ls *.deb | grep bullseye); do + aptly repo add zcash_bullseye_amd64_repo \$i + done + for i in \$(ls *.deb | grep stretch); do + aptly repo add zcash_stretch_amd64_repo \$i + done + for i in \$(ls *.deb | grep bookworm); do + aptly repo add zcash_bookworm_amd64_repo \$i + done + aptly snapshot create bookworm_snapshot from repo zcash_bookworm_amd64_repo + aptly snapshot create buster_snapshot from repo zcash_buster_amd64_repo + aptly snapshot create bullseye_snapshot from repo zcash_bullseye_amd64_repo + aptly snapshot create stretch_snapshot from repo zcash_stretch_amd64_repo + + export key=\$(gpg --list-secret-keys --keyid-format=long sysadmin@z.cash | head -n 2 | grep -v sec) + aptly publish snapshot --distribution buster --component main --architectures amd64 --gpg-key="\$key" --passphrase="" buster_snapshot + aptly publish snapshot --distribution bookworm --component main --architectures amd64 --gpg-key="\$key" --passphrase="" bookworm_snapshot + aptly publish snapshot --distribution bullseye --component main --architectures amd64 --gpg-key="\$key" --passphrase="" bullseye_snapshot + aptly publish snapshot --distribution stretch --component main --architectures amd64 --gpg-key="\$key" --passphrase="" stretch_snapshot + + apt install nginx-extras -y >/dev/null + cat << EOH > /etc/nginx/sites-enabled/default + server { + listen 80 default_server; + root /var/www/public; + location / { + autoindex on; + } + server_name _; + } + EOH + # get apt server + cp -a /root/.aptly/public /var/www/ + chown -R www-data:www-data /var/www + /etc/init.d/nginx restart + mkdir \$HOME/mirror + cd \$HOME/mirror + wget -q -r 127.0.0.1 + + cp \$HOME/public.asc \$HOME/mirror/127.0.0.1/zcash.asc + cd \$HOME/mirror + gsutil -q -m rsync -r ./127.0.0.1 gs://${{ secrets.GCP_PROJECT_ID_PROD }}-apt-packages/127.0.0.1 + cd 127.0.0.1 + if ! [[ ${array[2]} == *"-rc"* ]]; then + gsutil -q -m rsync -r ./ gs://${{ secrets.GCP_PROJECT_ID_PROD }}-apt-server/ + fi + echo "script finished" + EOF + + export FAIL=0 + chmod +x ./script.sh + + gcloud compute scp ./script.sh --zone "us-central1-a" --tunnel-through-iap --project "${{ secrets.GCP_PROJECT_ID_PROD }}" test-gitian-$random: || export FAIL=1 + gcloud compute scp --recurse $(pwd) --zone "us-central1-a" --tunnel-through-iap --project "${{ secrets.GCP_PROJECT_ID_PROD }}" test-gitian-$random:~/source || export FAIL=1 + + gcloud compute ssh --zone "us-central1-a" "test-gitian-$random" --tunnel-through-iap --project "${{ secrets.GCP_PROJECT_ID_PROD }}" --command="bash -i -c 'sudo -s ./script.sh'" -- -t || export FAIL=1 + + gcloud compute scp --recurse --zone "us-central1-a" --tunnel-through-iap --project "${{ secrets.GCP_PROJECT_ID_PROD }}" test-gitian-$random:/home/sa_*/source/gitian.sigs . || export FAIL=1 + + curl -s --request POST --url https://api.bunny.net/pullzone/${{ secrets.BUNNY_RESOURCE }}/purgeCache --header 'content-type: application/json' --header 'AccessKey: ${{ secrets.BUNNY_API_KEY }}' || export FAIL=1 + + rm -rf gitian.sigs/.git || export FAIL=1 + if ! [[ ${array[2]} == *"-rc"* ]]; then + mkdir $HOME/.ssh || echo "" + ssh-keyscan github.com >> $HOME/.ssh/known_hosts || export FAIL=1 + echo "${{ secrets.BOT_SSH_KEY }}" > $HOME/.ssh/id_rsa + chmod 600 $HOME/.ssh/id_rsa + git clone git@github.com:zcash/gitian.sigs.git sigs || export FAIL=1 + cp -a gitian.sigs/* sigs/ + cd sigs + git config --global user.name "ECC-CI" + git config --global user.email "${{ secrets.BOT_EMAIL }}" + git add . + git commit -am "${{ github.event.label.name }}" || export FAIL=1 + git push || export FAIL=1 + fi + gcloud compute instances delete "test-gitian-$random" --project "${{ secrets.GCP_PROJECT_ID_PROD }}" --zone "us-central1-a" --delete-disks=all + if [ $FAIL -eq 1 ]; then exit 1; fi diff --git a/roles/gitian/templates/gitian-build.sh b/roles/gitian/templates/gitian-build.sh index dafca5c..b60fe34 100644 --- a/roles/gitian/templates/gitian-build.sh +++ b/roles/gitian/templates/gitian-build.sh @@ -215,7 +215,11 @@ then echo "" echo "Compiling variant: ${VERSION}_${suite}" echo "" - + #workaround python and python3 in buster + if [[ $suite = "buster" ]] + then + sed -i -e 's/- "python3"/- "python"/g' -e 's/- "python-is-python3"//g' ${suite_dir_path}/gitian-linux-parallel.yml; + fi ./bin/gbuild --fetch-tags -j ${proc} -m ${mem} --commit zcash=${COMMIT} --url zcash=${url} ${suite_dir_path}/gitian-linux.yml ./bin/gsign -p "$signProg" --signer "$SIGNER" --release ${VERSION}_${suite} --destination ${gitian_sigs_repo_path}/ ${suite_dir_path}/gitian-linux.yml diff --git a/roles/gitian/templates/gitian-parallel-build.sh b/roles/gitian/templates/gitian-parallel-build.sh index fd87c6e..5600436 100644 --- a/roles/gitian/templates/gitian-parallel-build.sh +++ b/roles/gitian/templates/gitian-parallel-build.sh @@ -215,7 +215,11 @@ then echo "" echo "Compiling variant: ${VERSION}_${suite}" echo "" - + #workaround python and python3 in buster + if [[ $suite = "buster" ]] + then + sed -i -e 's/- "python3"/- "python"/g' -e 's/- "python-is-python3"//g' ${suite_dir_path}/gitian-linux-parallel.yml; + fi ./bin/gbuild --fetch-tags -j ${proc} -m ${mem} --commit zcash=${COMMIT} --url zcash=${url} ${suite_dir_path}/gitian-linux-parallel.yml ./bin/gsign -p "$signProg" --signer "$SIGNER" --release ${VERSION}_${suite} --destination ${gitian_sigs_repo_path}/ ${suite_dir_path}/gitian-linux-parallel.yml From 2eb12be9264579d4be83a665b554ba8541b86d36 Mon Sep 17 00:00:00 2001 From: y4ssi Date: Tue, 20 Feb 2024 13:08:57 -0700 Subject: [PATCH 5/5] iterate $OS (#156) * fix bookworm --- .github/workflows/CI.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 4fec825..3256999 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -168,11 +168,10 @@ jobs: cd zcash cp -a ../../debs/buster/zcbuild/*.deb \$final_version-amd64-buster.deb cp -a ../../debs/bullseye/zcbuild/*.deb \$final_version-amd64-bullseye.deb - cp -a ../../debs/bookworm/zcbuild/*.deb \$final_version-amd64-bookworm.deb - + cp -a ../../debs/bookworm/zcbuild/*.deb \$final_version-amd64-bookworm.deb || echo "" ls \$final_version-amd64-buster.deb || exit 1 ls \$final_version-amd64-bullseye.deb || exit 1 - ls \$final_version-amd64-bookworm.deb || exit 1 + ls \$final_version-amd64-bookworm.deb || echo "" aptly repo create --distribution buster --comment "" --component main zcash_buster_amd64_repo aptly repo create --distribution bullseye --comment "" --component main zcash_bullseye_amd64_repo