pixincreate / PixeneOS

GrapheneOS with additionals
https://pixincreate.github.io/PixeneOS/
MIT License
7 stars 2 forks source link

Error decoding base64 #13

Closed 0cwa closed 2 months ago

0cwa commented 2 months ago

I get this issue with git actions and locally building:

Decoding keys from base64...
Error decoding base64 for AVB_BASE64
Error decoding base64 for CERT_OTA_BASE64
Error decoding base64 for OTA_BASE64
Failed to decode keys from base64.\n
Error: Process completed with exit code 1.

Git ENV Secrets are set to: AVB_KEY CERT_OTA OTA_KEY

pixincreate commented 2 months ago

yes, this is expected.
i haven't written the documentation yet as this project still is in its early stages. but for now, below info should suffice is what i believe.

when you call generate_keys function from util_functions.sh(read below for step by step process), it calls base64_encode function in exchange.sh for encoding the keys to base64 so that it can be used in ci environments. in fact, it does prints out the base64 values in terminal (or where ever the function is called). you need to copy the values and add it as repository secret in your github fork. once that is done, these keys should automatically be fetched from there and decoded.

to generate keys, you can execute these in your command line:

cd pixeneos
source src/util_functions.sh && generate_keys
# you'll be asked for passphrases interactively since you've passed an env variable prior to this
# once done, you should now see base64 encoded values being printed.
0cwa commented 2 months ago

Ok, cool, that works!

0cwa commented 2 months ago

This is an issue with Github actions still. There's also a thing with Cargo.toml not being found, maybe related? My keys are properly in base64, I can decode what I put in with base64 -d and the variables mentioned are set as repository secrets under Actions.

Full Logs

2024-09-04T13:02:30.6022007Z Current runner version: '2.319.1' 2024-09-04T13:02:30.6046303Z ##[group]Operating System 2024-09-04T13:02:30.6047099Z Ubuntu 2024-09-04T13:02:30.6047469Z 22.04.4 2024-09-04T13:02:30.6047826Z LTS 2024-09-04T13:02:30.6048257Z ##[endgroup] 2024-09-04T13:02:30.6048674Z ##[group]Runner Image 2024-09-04T13:02:30.6049187Z Image: ubuntu-22.04 2024-09-04T13:02:30.6049602Z Version: 20240901.1.0 2024-09-04T13:02:30.6051443Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240901.1/images/ubuntu/Ubuntu2204-Readme.md 2024-09-04T13:02:30.6053015Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240901.1 2024-09-04T13:02:30.6053893Z ##[endgroup] 2024-09-04T13:02:30.6054310Z ##[group]Runner Image Provisioner 2024-09-04T13:02:30.6054873Z 2.0.384.1 2024-09-04T13:02:30.6055270Z ##[endgroup] 2024-09-04T13:02:30.6070968Z ##[group]GITHUB_TOKEN Permissions 2024-09-04T13:02:30.6072840Z Actions: write 2024-09-04T13:02:30.6073531Z Attestations: write 2024-09-04T13:02:30.6074142Z Checks: write 2024-09-04T13:02:30.6074525Z Contents: write 2024-09-04T13:02:30.6074989Z Deployments: write 2024-09-04T13:02:30.6075416Z Discussions: write 2024-09-04T13:02:30.6075814Z Issues: write 2024-09-04T13:02:30.6076269Z Metadata: read 2024-09-04T13:02:30.6076688Z Packages: write 2024-09-04T13:02:30.6077074Z Pages: write 2024-09-04T13:02:30.6077552Z PullRequests: write 2024-09-04T13:02:30.6077986Z RepositoryProjects: write 2024-09-04T13:02:30.6078524Z SecurityEvents: write 2024-09-04T13:02:30.6078944Z Statuses: write 2024-09-04T13:02:30.6079297Z ##[endgroup] 2024-09-04T13:02:30.6082363Z Secret source: Actions 2024-09-04T13:02:30.6082987Z Prepare workflow directory 2024-09-04T13:02:30.6992582Z Prepare all required actions 2024-09-04T13:02:30.7152363Z Getting action download info 2024-09-04T13:02:30.9601969Z Download action repository 'actions/checkout@v4' (SHA:692973e3d937129bcbf40652eb9f2f61becf3332) 2024-09-04T13:02:31.0614211Z Download action repository 'dtolnay/rust-toolchain@master' (SHA:7b1c307e0dcbda6122208f10795a713336a9b35a) 2024-09-04T13:02:31.2358607Z Download action repository 'Swatinem/rust-cache@v2.7.3' (SHA:23bce251a8cd2ffc3c1075eaa2367cf899916d84) 2024-09-04T13:02:31.4847319Z Download action repository 'actions/setup-python@v5' (SHA:f677139bbe7f9c59b41e40162b753c062f5d49a3) 2024-09-04T13:02:31.5698093Z Download action repository 'softprops/action-gh-release@v2' (SHA:c062e08bd532815e2082a85e87e3ef29c3e6d191) 2024-09-04T13:02:31.8572498Z Complete job name: build 2024-09-04T13:02:31.9403400Z ##[group]Run # Convert inputs to proper boolean values 2024-09-04T13:02:31.9404147Z # Convert inputs to proper boolean values 2024-09-04T13:02:31.9404767Z root=true 2024-09-04T13:02:31.9405172Z magisk_preinit_device=sda15 2024-09-04T13:02:31.9405657Z  2024-09-04T13:02:31.9406161Z # Ensure that the boolean comparison is correctly handled 2024-09-04T13:02:31.9406821Z if [ "$root" == "true" ] && [ -z "$magisk_preinit_device" ]; then 2024-09-04T13:02:31.9407633Z  echo -e "::error:: magisk-preinit-device is required when root is true." 2024-09-04T13:02:31.9408252Z  exit 1 2024-09-04T13:02:31.9408588Z fi 2024-09-04T13:02:31.9435329Z shell: /usr/bin/bash -e {0} 2024-09-04T13:02:31.9435857Z env: 2024-09-04T13:02:31.9436200Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:31.9436577Z DEVICE_NAME: bramble 2024-09-04T13:02:31.9437044Z INTERACTIVE_MODE: false 2024-09-04T13:02:31.9437566Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:31.9438051Z RUST_BACKTRACE: short 2024-09-04T13:02:31.9438421Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:31.9438809Z ##[endgroup] 2024-09-04T13:02:31.9840258Z ##[group]Run actions/checkout@v4 2024-09-04T13:02:31.9840744Z with: 2024-09-04T13:02:31.9841103Z fetch-depth: 0 2024-09-04T13:02:31.9841557Z repository: 0cwa/PixeneOS 2024-09-04T13:02:31.9842127Z token: *** 2024-09-04T13:02:31.9842487Z ssh-strict: true 2024-09-04T13:02:31.9842907Z ssh-user: git 2024-09-04T13:02:31.9843565Z persist-credentials: true 2024-09-04T13:02:31.9844025Z clean: true 2024-09-04T13:02:31.9844416Z sparse-checkout-cone-mode: true 2024-09-04T13:02:31.9844868Z fetch-tags: false 2024-09-04T13:02:31.9845293Z show-progress: true 2024-09-04T13:02:31.9845671Z lfs: false 2024-09-04T13:02:31.9846001Z submodules: false 2024-09-04T13:02:31.9846455Z set-safe-directory: true 2024-09-04T13:02:31.9846795Z env: 2024-09-04T13:02:31.9847115Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:31.9847564Z DEVICE_NAME: bramble 2024-09-04T13:02:31.9847927Z INTERACTIVE_MODE: false 2024-09-04T13:02:31.9848385Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:31.9848926Z RUST_BACKTRACE: short 2024-09-04T13:02:31.9849359Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:31.9850083Z ##[endgroup] 2024-09-04T13:02:32.1566548Z Syncing repository: 0cwa/PixeneOS 2024-09-04T13:02:32.1568304Z ##[group]Getting Git version info 2024-09-04T13:02:32.1569170Z Working directory is '/home/runner/work/PixeneOS/PixeneOS' 2024-09-04T13:02:32.1570386Z [command]/usr/bin/git version 2024-09-04T13:02:32.1570955Z git version 2.46.0 2024-09-04T13:02:32.1589619Z ##[endgroup] 2024-09-04T13:02:32.1603134Z Temporarily overriding HOME='/home/runner/work/_temp/14171ef5-8c85-4b79-b55a-a3678f960c70' before making global git config changes 2024-09-04T13:02:32.1604266Z Adding repository directory to the temporary git global config as a safe directory 2024-09-04T13:02:32.1615392Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/PixeneOS/PixeneOS 2024-09-04T13:02:32.1651048Z Deleting the contents of '/home/runner/work/PixeneOS/PixeneOS' 2024-09-04T13:02:32.1654322Z ##[group]Initializing the repository 2024-09-04T13:02:32.1658154Z [command]/usr/bin/git init /home/runner/work/PixeneOS/PixeneOS 2024-09-04T13:02:32.1719014Z hint: Using 'master' as the name for the initial branch. This default branch name 2024-09-04T13:02:32.1720364Z hint: is subject to change. To configure the initial branch name to use in all 2024-09-04T13:02:32.1721705Z hint: of your new repositories, which will suppress this warning, call: 2024-09-04T13:02:32.1723043Z hint: 2024-09-04T13:02:32.1724032Z hint: git config --global init.defaultBranch 2024-09-04T13:02:32.1725060Z hint: 2024-09-04T13:02:32.1726283Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 2024-09-04T13:02:32.1727387Z hint: 'development'. The just-created branch can be renamed via this command: 2024-09-04T13:02:32.1728178Z hint: 2024-09-04T13:02:32.1728608Z hint: git branch -m 2024-09-04T13:02:32.1729309Z Initialized empty Git repository in /home/runner/work/PixeneOS/PixeneOS/.git/ 2024-09-04T13:02:32.1735971Z [command]/usr/bin/git remote add origin https://github.com/0cwa/PixeneOS 2024-09-04T13:02:32.1768387Z ##[endgroup] 2024-09-04T13:02:32.1769148Z ##[group]Disabling automatic garbage collection 2024-09-04T13:02:32.1772818Z [command]/usr/bin/git config --local gc.auto 0 2024-09-04T13:02:32.1801322Z ##[endgroup] 2024-09-04T13:02:32.1801925Z ##[group]Setting up auth 2024-09-04T13:02:32.1807750Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2024-09-04T13:02:32.1838534Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" 2024-09-04T13:02:32.2123522Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2024-09-04T13:02:32.2153652Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" 2024-09-04T13:02:32.2384998Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** 2024-09-04T13:02:32.2432169Z ##[endgroup] 2024-09-04T13:02:32.2432924Z ##[group]Fetching the repository 2024-09-04T13:02:32.2440647Z [command]/usr/bin/git -c protocol.version=2 fetch --prune --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* 2024-09-04T13:02:32.5289028Z From https://github.com/0cwa/PixeneOS 2024-09-04T13:02:32.5291137Z * [new branch] gh-pages -> origin/gh-pages 2024-09-04T13:02:32.5292389Z * [new branch] main -> origin/main 2024-09-04T13:02:32.5293402Z * [new branch] patch-1 -> origin/patch-1 2024-09-04T13:02:32.5367982Z * [new tag] first -> first 2024-09-04T13:02:32.5371293Z [command]/usr/bin/git branch --list --remote origin/main 2024-09-04T13:02:32.5393691Z origin/main 2024-09-04T13:02:32.5399266Z [command]/usr/bin/git rev-parse refs/remotes/origin/main 2024-09-04T13:02:32.5422527Z d270c36f91d958707fb965cf41fa2a4c54b09c6a 2024-09-04T13:02:32.5430795Z ##[endgroup] 2024-09-04T13:02:32.5435601Z ##[group]Determining the checkout info 2024-09-04T13:02:32.5437043Z ##[endgroup] 2024-09-04T13:02:32.5437902Z [command]/usr/bin/git sparse-checkout disable 2024-09-04T13:02:32.5476143Z [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig 2024-09-04T13:02:32.5506341Z ##[group]Checking out the ref 2024-09-04T13:02:32.5509449Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main 2024-09-04T13:02:32.5559127Z Switched to a new branch 'main' 2024-09-04T13:02:32.5563738Z branch 'main' set up to track 'origin/main'. 2024-09-04T13:02:32.5572397Z ##[endgroup] 2024-09-04T13:02:32.5616093Z [command]/usr/bin/git log -1 --format='%H' 2024-09-04T13:02:32.5641429Z 'd270c36f91d958707fb965cf41fa2a4c54b09c6a' 2024-09-04T13:02:32.5827314Z ##[group]Run # Device name is a required parameter 2024-09-04T13:02:32.5828578Z # Device name is a required parameter 2024-09-04T13:02:32.5829658Z if [[ -z "${DEVICE_NAME}" ]]; then 2024-09-04T13:02:32.5830759Z  echo -e "::error::Missing required param \`DEVICE_NAME\`" 2024-09-04T13:02:32.5831770Z  exit 1 2024-09-04T13:02:32.5832538Z fi 2024-09-04T13:02:32.5833087Z  2024-09-04T13:02:32.5834074Z # Fetch the latest GrapheneOS version and set up the environment 2024-09-04T13:02:32.5835256Z source src/fetcher.sh && get_latest_version 2024-09-04T13:02:32.5836331Z echo "GRAPHENEOS_VERSION=${VERSION[GRAPHENEOS]}" >> $GITHUB_ENV 2024-09-04T13:02:32.5837392Z  2024-09-04T13:02:32.5838223Z # Determine if the build is based on magisk or rootless (build flavor) 2024-09-04T13:02:32.5839672Z build_flavor=$([[ true == 'true' ]] && echo 'magisk' || echo 'rootless') 2024-09-04T13:02:32.5840820Z  2024-09-04T13:02:32.5841372Z # Check if the tag exists 2024-09-04T13:02:32.5842454Z if git show-ref --tags ${VERSION[GRAPHENEOS]} --quiet; then 2024-09-04T13:02:32.5843929Z  echo -e "Tag with GrapheneOS version ${VERSION[GRAPHENEOS]} already exists. Looking for assets..." 2024-09-04T13:02:32.5845450Z  # Fetch the release information for the tag 2024-09-04T13:02:32.5846823Z  repo_url="https://api.github.com/repos/0cwa/PixeneOS/releases/tags/${VERSION[GRAPHENEOS]}" 2024-09-04T13:02:32.5848154Z  release_info=$(curl -sL "$repo_url") 2024-09-04T13:02:32.5849043Z  2024-09-04T13:02:32.5849592Z  # Define required assets 2024-09-04T13:02:32.5850565Z  required_assets=( 2024-09-04T13:02:32.5851486Z  "bramble-${VERSION[GRAPHENEOS]}-magisk-*.zip" 2024-09-04T13:02:32.5852548Z  "bramble-${VERSION[GRAPHENEOS]}-magisk-*.zip.csig" 2024-09-04T13:02:32.5853691Z  "bramble-${VERSION[GRAPHENEOS]}-rootless-*.zip" 2024-09-04T13:02:32.5854774Z  "bramble-${VERSION[GRAPHENEOS]}-rootless-*.zip.csig" 2024-09-04T13:02:32.5855694Z  ) 2024-09-04T13:02:32.5856472Z  2024-09-04T13:02:32.5857273Z  existing_assets=$(echo "$release_info" | jq -r '.assets[].name') 2024-09-04T13:02:32.5858286Z  missing_assets=() 2024-09-04T13:02:32.5859122Z  2024-09-04T13:02:32.5860296Z  for required_asset in "${required_assets[@]}"; do 2024-09-04T13:02:32.5861480Z  # Convert wildcard pattern to regex 2024-09-04T13:02:32.5862430Z  regex="${required_asset//\*/.*}" 2024-09-04T13:02:32.5863189Z   2024-09-04T13:02:32.5864141Z  for asset in "${existing_assets[@]}"; do 2024-09-04T13:02:32.5865308Z  # if existing asset matches the required asset, break the loop 2024-09-04T13:02:32.5866582Z  if ! [[ $asset =~ $regex ]]; then 2024-09-04T13:02:32.5867594Z  missing_assets+=("$required_asset") 2024-09-04T13:02:32.5868490Z  break 2024-09-04T13:02:32.5869246Z  fi 2024-09-04T13:02:32.5869854Z  done 2024-09-04T13:02:32.5870426Z  done 2024-09-04T13:02:32.5871162Z  2024-09-04T13:02:32.5871823Z  if [ ${#missing_assets[@]} -eq 0 ]; then 2024-09-04T13:02:32.5873006Z  echo -e "::error::All required assets are present. Exiting..." 2024-09-04T13:02:32.5874010Z  exit 1 2024-09-04T13:02:32.5874604Z  else 2024-09-04T13:02:32.5875360Z  echo -e "Missing assets:" 2024-09-04T13:02:32.5876251Z  for missing_asset in "${missing_assets[@]}"; do 2024-09-04T13:02:32.5877203Z  echo -e " - $missing_asset" 2024-09-04T13:02:32.5878171Z  done 2024-09-04T13:02:32.5878795Z  2024-09-04T13:02:32.5880268Z  # Grep always throws an error stating it cannot find the file or directory 2024-09-04T13:02:32.5881448Z  valid_build="" 2024-09-04T13:02:32.5882290Z  for missing_asset in "${missing_assets[@]}"; do 2024-09-04T13:02:32.5883521Z  if [[ $missing_asset == *"$build_flavor"* ]]; then 2024-09-04T13:02:32.5884561Z  valid_build="$build_flavor" 2024-09-04T13:02:32.5885398Z  break 2024-09-04T13:02:32.5886187Z  fi 2024-09-04T13:02:32.5886821Z  done 2024-09-04T13:02:32.5887577Z   2024-09-04T13:02:32.5888402Z  # Check if valid_build is either "magisk" or "rootless" 2024-09-04T13:02:32.5890526Z  if [[ "$valid_build" == "magisk" ]] || [[ "$valid_build" == "rootless" ]]; then 2024-09-04T13:02:32.5892022Z  echo -e "Proceeding with build to create missing assets..." 2024-09-04T13:02:32.5893032Z  else 2024-09-04T13:02:32.5894071Z  echo -e "::error::Asset with \`$build_flavor\` flavor already exists!" 2024-09-04T13:02:32.5895124Z  exit 1 2024-09-04T13:02:32.5895792Z  fi 2024-09-04T13:02:32.5896525Z  fi 2024-09-04T13:02:32.5897070Z else 2024-09-04T13:02:32.5898225Z  echo -e "Tag with GrapheneOS version ${VERSION[GRAPHENEOS]} does not exist. Creating one..." 2024-09-04T13:02:32.5899624Z fi 2024-09-04T13:02:32.5937007Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:32.5937985Z env: 2024-09-04T13:02:32.5938610Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:32.5939479Z DEVICE_NAME: bramble 2024-09-04T13:02:32.5940224Z INTERACTIVE_MODE: false 2024-09-04T13:02:32.5941000Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:32.5941928Z RUST_BACKTRACE: short 2024-09-04T13:02:32.5942579Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:32.5943391Z ##[endgroup] 2024-09-04T13:02:33.0199971Z GrapheneOS OTA target: `bramble-ota_update-2024083100` 2024-09-04T13:02:33.0201034Z GrapheneOS OTA URL: https://releases.grapheneos.org/bramble-ota_update-2024083100.zip 2024-09-04T13:02:33.0201819Z 2024-09-04T13:02:33.0223859Z Tag with GrapheneOS version 2024083100 does not exist. Creating one... 2024-09-04T13:02:33.0259505Z ##[group]Run # Configure git for pushing changes 2024-09-04T13:02:33.0260185Z # Configure git for pushing changes 2024-09-04T13:02:33.0261134Z git config --global user.email *** && git config --global user.name 0cwa 2024-09-04T13:02:33.0285248Z shell: /usr/bin/bash -e {0} 2024-09-04T13:02:33.0285653Z env: 2024-09-04T13:02:33.0286047Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:33.0286420Z DEVICE_NAME: bramble 2024-09-04T13:02:33.0286821Z INTERACTIVE_MODE: false 2024-09-04T13:02:33.0287284Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:33.0287668Z RUST_BACKTRACE: short 2024-09-04T13:02:33.0288052Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:33.0288500Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:33.0288905Z ##[endgroup] 2024-09-04T13:02:33.0498692Z ##[group]Run dtolnay/rust-toolchain@master 2024-09-04T13:02:33.0499197Z with: 2024-09-04T13:02:33.0499638Z toolchain: stable 2 weeks ago 2024-09-04T13:02:33.0500064Z env: 2024-09-04T13:02:33.0500381Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:33.0500844Z DEVICE_NAME: bramble 2024-09-04T13:02:33.0501210Z INTERACTIVE_MODE: false 2024-09-04T13:02:33.0501605Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:33.0502101Z RUST_BACKTRACE: short 2024-09-04T13:02:33.0502470Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:33.0502944Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:33.0503335Z ##[endgroup] 2024-09-04T13:02:33.0696046Z ##[group]Run : parse toolchain version 2024-09-04T13:02:33.0696546Z : parse toolchain version 2024-09-04T13:02:33.0697253Z if [[ $toolchain =~ ^stable' '[0-9]+' '(year|month|week|day)s?' 'ago$ ]]; then 2024-09-04T13:02:33.0697876Z  if [[ Linux == macOS ]]; then 2024-09-04T13:02:33.0698860Z  echo "toolchain=1.$((($(date -v-$(sed 's/stable \([0-9]*\) \(.\).*/\1\2/' <<< $toolchain) +%s)/60/60/24-16569)/7/6))" >> $GITHUB_OUTPUT 2024-09-04T13:02:33.0699616Z  else 2024-09-04T13:02:33.0700235Z  echo "toolchain=1.$((($(date --date "${toolchain#stable }" +%s)/60/60/24-16569)/7/6))" >> $GITHUB_OUTPUT 2024-09-04T13:02:33.0700948Z  fi 2024-09-04T13:02:33.0701427Z elif [[ $toolchain =~ ^stable' 'minus' '[0-9]+' 'releases?$ ]]; then 2024-09-04T13:02:33.0702238Z  echo "toolchain=1.$((($(date +%s)/60/60/24-16569)/7/6-${toolchain//[^0-9]/}))" >> $GITHUB_OUTPUT 2024-09-04T13:02:33.0702959Z else 2024-09-04T13:02:33.0703389Z  echo "toolchain=$toolchain" >> $GITHUB_OUTPUT 2024-09-04T13:02:33.0703931Z fi 2024-09-04T13:02:33.0726453Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:33.0727084Z env: 2024-09-04T13:02:33.0727406Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:33.0727848Z DEVICE_NAME: bramble 2024-09-04T13:02:33.0728246Z INTERACTIVE_MODE: false 2024-09-04T13:02:33.0728646Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:33.0729148Z RUST_BACKTRACE: short 2024-09-04T13:02:33.0729521Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:33.0730288Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:33.0730840Z toolchain: stable 2 weeks ago 2024-09-04T13:02:33.0731239Z ##[endgroup] 2024-09-04T13:02:33.0849461Z ##[group]Run : construct rustup command line 2024-09-04T13:02:33.0850354Z : construct rustup command line 2024-09-04T13:02:33.0851097Z echo "targets=$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)" >> $GITHUB_OUTPUT 2024-09-04T13:02:33.0852014Z echo "components=$(for c in ${components//,/ }; do echo -n ' --component' $c; done)" >> $GITHUB_OUTPUT 2024-09-04T13:02:33.0852806Z echo "downgrade=" >> $GITHUB_OUTPUT 2024-09-04T13:02:33.0874525Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:33.0875050Z env: 2024-09-04T13:02:33.0875368Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:33.0875839Z DEVICE_NAME: bramble 2024-09-04T13:02:33.0876213Z INTERACTIVE_MODE: false 2024-09-04T13:02:33.0876686Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:33.0877108Z RUST_BACKTRACE: short 2024-09-04T13:02:33.0877475Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:33.0877934Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:33.0878326Z targets: 2024-09-04T13:02:33.0878664Z components: 2024-09-04T13:02:33.0879064Z ##[endgroup] 2024-09-04T13:02:33.0958194Z ##[group]Run : set $CARGO_HOME 2024-09-04T13:02:33.0958633Z : set $CARGO_HOME 2024-09-04T13:02:33.0959238Z echo CARGO_HOME=${CARGO_HOME:-$HOME/.cargo} >> $GITHUB_ENV 2024-09-04T13:02:33.0981525Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:33.0982055Z env: 2024-09-04T13:02:33.0982370Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:33.0982839Z DEVICE_NAME: bramble 2024-09-04T13:02:33.0983205Z INTERACTIVE_MODE: false 2024-09-04T13:02:33.0983918Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:33.0984380Z RUST_BACKTRACE: short 2024-09-04T13:02:33.0984756Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:33.0985227Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:33.0985615Z ##[endgroup] 2024-09-04T13:02:33.1061413Z ##[group]Run : install rustup if needed 2024-09-04T13:02:33.1062014Z : install rustup if needed 2024-09-04T13:02:33.1062502Z if ! command -v rustup &>/dev/null; then 2024-09-04T13:02:33.1063589Z  curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused --location --silent --show-error --fail "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y 2024-09-04T13:02:33.1064618Z  echo "$CARGO_HOME/bin" >> $GITHUB_PATH 2024-09-04T13:02:33.1065069Z fi 2024-09-04T13:02:33.1086482Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:33.1087110Z env: 2024-09-04T13:02:33.1087433Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:33.1087802Z DEVICE_NAME: bramble 2024-09-04T13:02:33.1088258Z INTERACTIVE_MODE: false 2024-09-04T13:02:33.1088652Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:33.1089199Z RUST_BACKTRACE: short 2024-09-04T13:02:33.1089654Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:33.1090295Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:33.1090808Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:33.1091219Z ##[endgroup] 2024-09-04T13:02:33.1162143Z ##[group]Run rustup toolchain install 1.80 --profile minimal --no-self-update 2024-09-04T13:02:33.1163003Z rustup toolchain install 1.80 --profile minimal --no-self-update 2024-09-04T13:02:33.1185514Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:33.1186035Z env: 2024-09-04T13:02:33.1186459Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:33.1186836Z DEVICE_NAME: bramble 2024-09-04T13:02:33.1187218Z INTERACTIVE_MODE: false 2024-09-04T13:02:33.1187684Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:33.1188105Z RUST_BACKTRACE: short 2024-09-04T13:02:33.1188497Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:33.1188944Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:33.1189375Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:33.1189836Z ##[endgroup] 2024-09-04T13:02:34.0524293Z info: syncing channel updates for '1.80-x86_64-unknown-linux-gnu' 2024-09-04T13:02:34.2725241Z info: latest update on 2024-08-08, rust version 1.80.1 (3f5fd8dd4 2024-08-06) 2024-09-04T13:02:34.2726626Z info: downloading component 'cargo' 2024-09-04T13:02:34.3251668Z info: downloading component 'rust-std' 2024-09-04T13:02:34.4417688Z info: downloading component 'rustc' 2024-09-04T13:02:34.7031583Z info: installing component 'cargo' 2024-09-04T13:02:35.2890527Z info: installing component 'rust-std' 2024-09-04T13:02:36.9807330Z info: installing component 'rustc' 2024-09-04T13:02:40.7713237Z 2024-09-04T13:02:40.7826494Z 1.80-x86_64-unknown-linux-gnu installed - rustc 1.80.1 (3f5fd8dd4 2024-08-06) 2024-09-04T13:02:40.7827018Z 2024-09-04T13:02:40.7882560Z ##[group]Run rustup default 1.80 2024-09-04T13:02:40.7883032Z rustup default 1.80 2024-09-04T13:02:40.7908334Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:40.7908852Z env: 2024-09-04T13:02:40.7909304Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:40.7909676Z DEVICE_NAME: bramble 2024-09-04T13:02:40.7910112Z INTERACTIVE_MODE: false 2024-09-04T13:02:40.7910526Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:40.7910947Z RUST_BACKTRACE: short 2024-09-04T13:02:40.7911408Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:40.7912023Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:40.7912443Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:40.7912948Z ##[endgroup] 2024-09-04T13:02:40.7992093Z info: using existing install for '1.80-x86_64-unknown-linux-gnu' 2024-09-04T13:02:40.8000448Z info: default toolchain set to '1.80-x86_64-unknown-linux-gnu' 2024-09-04T13:02:40.8000995Z 2024-09-04T13:02:40.8110598Z 1.80-x86_64-unknown-linux-gnu unchanged - rustc 1.80.1 (3f5fd8dd4 2024-08-06) 2024-09-04T13:02:40.8111437Z 2024-09-04T13:02:40.8146133Z ##[group]Run : create cachekey 2024-09-04T13:02:40.8146571Z : create cachekey 2024-09-04T13:02:40.8147327Z DATE=$(rustc +1.80 --version --verbose | sed -ne 's/^commit-date: \(20[0-9][0-9]\)-\([01][0-9]\)-\([0-3][0-9]\)$/\1\2\3/p') 2024-09-04T13:02:40.8148304Z HASH=$(rustc +1.80 --version --verbose | sed -ne 's/^commit-hash: //p') 2024-09-04T13:02:40.8149047Z echo "cachekey=$(echo $DATE$HASH | head -c12)" >> $GITHUB_OUTPUT 2024-09-04T13:02:40.8173603Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:40.8174140Z env: 2024-09-04T13:02:40.8174566Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:40.8174953Z DEVICE_NAME: bramble 2024-09-04T13:02:40.8175324Z INTERACTIVE_MODE: false 2024-09-04T13:02:40.8175796Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:40.8176233Z RUST_BACKTRACE: short 2024-09-04T13:02:40.8176676Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:40.8177071Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:40.8177493Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:40.8177950Z ##[endgroup] 2024-09-04T13:02:40.9945058Z ##[group]Run : disable incremental compilation 2024-09-04T13:02:40.9946118Z : disable incremental compilation 2024-09-04T13:02:40.9947062Z if [ -z "${CARGO_INCREMENTAL+set}" ]; then 2024-09-04T13:02:40.9948047Z  echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV 2024-09-04T13:02:40.9949071Z fi 2024-09-04T13:02:40.9984917Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:40.9985832Z env: 2024-09-04T13:02:40.9986309Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:40.9987066Z DEVICE_NAME: bramble 2024-09-04T13:02:40.9987726Z INTERACTIVE_MODE: false 2024-09-04T13:02:40.9988578Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:40.9989425Z RUST_BACKTRACE: short 2024-09-04T13:02:40.9990078Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:40.9990885Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:40.9991667Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:40.9992384Z ##[endgroup] 2024-09-04T13:02:41.0093824Z ##[group]Run : enable colors in Cargo output 2024-09-04T13:02:41.0094937Z : enable colors in Cargo output 2024-09-04T13:02:41.0095879Z if [ -z "${CARGO_TERM_COLOR+set}" ]; then 2024-09-04T13:02:41.0096964Z  echo CARGO_TERM_COLOR=always >> $GITHUB_ENV 2024-09-04T13:02:41.0097854Z fi 2024-09-04T13:02:41.0130255Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:41.0131199Z env: 2024-09-04T13:02:41.0131758Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:41.0132637Z DEVICE_NAME: bramble 2024-09-04T13:02:41.0133327Z INTERACTIVE_MODE: false 2024-09-04T13:02:41.0134030Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:41.0134473Z RUST_BACKTRACE: short 2024-09-04T13:02:41.0134872Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:41.0135351Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:41.0135780Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:41.0136279Z ##[endgroup] 2024-09-04T13:02:41.0208469Z ##[group]Run : enable Cargo sparse registry 2024-09-04T13:02:41.0208997Z : enable Cargo sparse registry 2024-09-04T13:02:41.0209658Z # implemented in 1.66, stabilized in 1.68, made default in 1.70 2024-09-04T13:02:41.0211015Z if [ -z "${CARGO_REGISTRIES_CRATES_IO_PROTOCOL+set}" -o -f "/home/runner/work/_temp"/.implicit_cargo_registries_crates_io_protocol ]; then 2024-09-04T13:02:41.0212015Z  if rustc +1.80 --version --verbose | grep -q '^release: 1\.6[89]\.'; then 2024-09-04T13:02:41.0213189Z  touch "/home/runner/work/_temp"/.implicit_cargo_registries_crates_io_protocol || true 2024-09-04T13:02:41.0213991Z  echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV 2024-09-04T13:02:41.0214725Z  elif rustc +1.80 --version --verbose | grep -q '^release: 1\.6[67]\.'; then 2024-09-04T13:02:41.0215783Z  touch "/home/runner/work/_temp"/.implicit_cargo_registries_crates_io_protocol || true 2024-09-04T13:02:41.0216561Z  echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=git >> $GITHUB_ENV 2024-09-04T13:02:41.0217191Z  fi 2024-09-04T13:02:41.0217531Z fi 2024-09-04T13:02:41.0239013Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:41.0239535Z env: 2024-09-04T13:02:41.0239938Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:41.0240312Z DEVICE_NAME: bramble 2024-09-04T13:02:41.0240699Z INTERACTIVE_MODE: false 2024-09-04T13:02:41.0241173Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:41.0241609Z RUST_BACKTRACE: short 2024-09-04T13:02:41.0241979Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:41.0242443Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:41.0242869Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:41.0243350Z CARGO_TERM_COLOR: always 2024-09-04T13:02:41.0243735Z ##[endgroup] 2024-09-04T13:02:41.0619936Z ##[group]Run : work around spurious network errors in curl 8.0 2024-09-04T13:02:41.0620955Z : work around spurious network errors in curl 8.0 2024-09-04T13:02:41.0621800Z # https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/timeout.20investigation 2024-09-04T13:02:41.0622748Z if rustc +1.80 --version --verbose | grep -q '^release: 1\.7[01]\.'; then 2024-09-04T13:02:41.0623451Z  echo CARGO_HTTP_MULTIPLEXING=false >> $GITHUB_ENV 2024-09-04T13:02:41.0623944Z fi 2024-09-04T13:02:41.0647625Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:41.0648276Z env: 2024-09-04T13:02:41.0648599Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:41.0648988Z DEVICE_NAME: bramble 2024-09-04T13:02:41.0649433Z INTERACTIVE_MODE: false 2024-09-04T13:02:41.0650064Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:41.0650593Z RUST_BACKTRACE: short 2024-09-04T13:02:41.0650969Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:41.0651371Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:41.0651845Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:41.0652261Z CARGO_TERM_COLOR: always 2024-09-04T13:02:41.0652649Z ##[endgroup] 2024-09-04T13:02:41.0892982Z ##[group]Run rustc +1.80 --version --verbose 2024-09-04T13:02:41.0893828Z rustc +1.80 --version --verbose 2024-09-04T13:02:41.0919737Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:41.0920625Z env: 2024-09-04T13:02:41.0921349Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:41.0922033Z DEVICE_NAME: bramble 2024-09-04T13:02:41.0922695Z INTERACTIVE_MODE: false 2024-09-04T13:02:41.0923620Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:41.0924404Z RUST_BACKTRACE: short 2024-09-04T13:02:41.0925099Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:41.0925953Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:41.0926708Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:41.0927624Z CARGO_TERM_COLOR: always 2024-09-04T13:02:41.0928296Z ##[endgroup] 2024-09-04T13:02:41.1118631Z rustc 1.80.1 (3f5fd8dd4 2024-08-06) 2024-09-04T13:02:41.1119390Z binary: rustc 2024-09-04T13:02:41.1120220Z commit-hash: 3f5fd8dd41153bc5fdca9427e9e05be2c767ba23 2024-09-04T13:02:41.1121307Z commit-date: 2024-08-06 2024-09-04T13:02:41.1122018Z host: x86_64-unknown-linux-gnu 2024-09-04T13:02:41.1122800Z release: 1.80.1 2024-09-04T13:02:41.1123346Z LLVM version: 18.1.7 2024-09-04T13:02:41.1276200Z ##[group]Run Swatinem/rust-cache@v2.7.3 2024-09-04T13:02:41.1276678Z with: 2024-09-04T13:02:41.1277106Z prefix-key: v0-rust 2024-09-04T13:02:41.1277485Z cache-targets: true 2024-09-04T13:02:41.1277853Z cache-all-crates: false 2024-09-04T13:02:41.1278533Z save-if: true 2024-09-04T13:02:41.1278887Z cache-provider: github 2024-09-04T13:02:41.1279265Z env: 2024-09-04T13:02:41.1279643Z CARGO_INCREMENTAL: 1 2024-09-04T13:02:41.1280039Z DEVICE_NAME: bramble 2024-09-04T13:02:41.1280483Z INTERACTIVE_MODE: false 2024-09-04T13:02:41.1280949Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:41.1281385Z RUST_BACKTRACE: short 2024-09-04T13:02:41.1281819Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:41.1282204Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:41.1282631Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:41.1283100Z CARGO_TERM_COLOR: always 2024-09-04T13:02:41.1283480Z ##[endgroup] 2024-09-04T13:02:42.0770812Z Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 101 2024-09-04T13:02:42.0772583Z at ExecState._setResult (/home/runner/work/_actions/Swatinem/rust-cache/v2.7.3/dist/restore/index.js:7780:25) 2024-09-04T13:02:42.0774386Z at ExecState.CheckComplete (/home/runner/work/_actions/Swatinem/rust-cache/v2.7.3/dist/restore/index.js:7763:18) 2024-09-04T13:02:42.0775691Z at ChildProcess. (/home/runner/work/_actions/Swatinem/rust-cache/v2.7.3/dist/restore/index.js:7657:27) 2024-09-04T13:02:42.0776645Z at ChildProcess.emit (node:events:519:28) 2024-09-04T13:02:42.0777208Z at maybeClose (node:internal/child_process:1105:16) 2024-09-04T13:02:42.0777873Z at ChildProcess._handle.onexit (node:internal/child_process:305:5) { 2024-09-04T13:02:42.0778552Z commandFailed: { 2024-09-04T13:02:42.0779147Z command: 'cargo metadata --all-features --format-version 1 --no-deps', 2024-09-04T13:02:42.0780606Z stderr: '\x1B[1m\x1B[31merror\x1B[0m\x1B[1m:\x1B[0m could not find `Cargo.toml` in `/home/runner/work/PixeneOS/PixeneOS` or any parent directory\n' 2024-09-04T13:02:42.0781872Z } 2024-09-04T13:02:42.0782180Z } 2024-09-04T13:02:42.1106463Z ##[group]Cache Configuration 2024-09-04T13:02:42.1107265Z Cache Provider: 2024-09-04T13:02:42.1107911Z github 2024-09-04T13:02:42.1108666Z Workspaces: 2024-09-04T13:02:42.1109358Z /home/runner/work/PixeneOS/PixeneOS 2024-09-04T13:02:42.1110283Z Cache Paths: 2024-09-04T13:02:42.1110940Z /home/runner/.cargo 2024-09-04T13:02:42.1111741Z /home/runner/work/PixeneOS/PixeneOS/target 2024-09-04T13:02:42.1112723Z Restore Key: 2024-09-04T13:02:42.1113574Z v0-rust-build-5e5f0fd9 2024-09-04T13:02:42.1114380Z Cache Key: 2024-09-04T13:02:42.1115146Z v0-rust-build-5e5f0fd9-da39a3ee 2024-09-04T13:02:42.1115797Z .. Prefix: 2024-09-04T13:02:42.1116322Z - v0-rust-build 2024-09-04T13:02:42.1116774Z .. Environment considered: 2024-09-04T13:02:42.1117660Z - Rust Version: 1.80.1 x86_64-unknown-linux-gnu (3f5fd8dd41153bc5fdca9427e9e05be2c767ba23) 2024-09-04T13:02:42.1118729Z - CARGO_HOME 2024-09-04T13:02:42.1119190Z - CARGO_INCREMENTAL 2024-09-04T13:02:42.1119655Z - CARGO_TERM_COLOR 2024-09-04T13:02:42.1120138Z - RUST_BACKTRACE 2024-09-04T13:02:42.1120638Z - RUSTUP_MAX_RETRIES 2024-09-04T13:02:42.1121119Z .. Lockfiles considered: 2024-09-04T13:02:42.1121746Z ##[endgroup] 2024-09-04T13:02:42.1121964Z 2024-09-04T13:02:42.1122185Z ... Restoring cache ... 2024-09-04T13:02:42.2266489Z No cache found. 2024-09-04T13:02:42.2383220Z ##[group]Run actions/setup-python@v5 2024-09-04T13:02:42.2383703Z with: 2024-09-04T13:02:42.2384120Z python-version: 3.12-dev 2024-09-04T13:02:42.2384509Z check-latest: false 2024-09-04T13:02:42.2385056Z token: *** 2024-09-04T13:02:42.2385668Z update-environment: true 2024-09-04T13:02:42.2386194Z allow-prereleases: false 2024-09-04T13:02:42.2386561Z env: 2024-09-04T13:02:42.2386940Z CARGO_INCREMENTAL: 0 2024-09-04T13:02:42.2387315Z DEVICE_NAME: bramble 2024-09-04T13:02:42.2387732Z INTERACTIVE_MODE: false 2024-09-04T13:02:42.2388134Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:42.2388548Z RUST_BACKTRACE: short 2024-09-04T13:02:42.2388972Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:42.2389364Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:42.2389769Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:42.2390510Z CARGO_TERM_COLOR: always 2024-09-04T13:02:42.2390888Z CACHE_ON_FAILURE: false 2024-09-04T13:02:42.2391325Z ##[endgroup] 2024-09-04T13:02:42.3937291Z ##[group]Installed versions 2024-09-04T13:02:42.3993603Z Successfully set up CPython (3.12.5) 2024-09-04T13:02:42.3994995Z ##[endgroup] 2024-09-04T13:02:42.4563646Z ##[group]Run echo "KEYS_AVB_BASE64=***" >> $GITHUB_ENV 2024-09-04T13:02:42.4813868Z echo "KEYS_AVB_BASE64=***" >> $GITHUB_ENV 2024-09-04T13:02:42.4891599Z echo "KEYS_CERT_OTA_BASE64=***" >> $GITHUB_ENV 2024-09-04T13:02:42.5138990Z echo "KEYS_OTA_BASE64=***" >> $GITHUB_ENV 2024-09-04T13:02:42.5166281Z shell: /usr/bin/bash -e {0} 2024-09-04T13:02:42.5166590Z env: 2024-09-04T13:02:42.5166823Z CARGO_INCREMENTAL: 0 2024-09-04T13:02:42.5167107Z DEVICE_NAME: bramble 2024-09-04T13:02:42.5167388Z INTERACTIVE_MODE: false 2024-09-04T13:02:42.5167693Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:42.5168048Z RUST_BACKTRACE: short 2024-09-04T13:02:42.5168326Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:42.5168615Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:42.5168931Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:42.5169248Z CARGO_TERM_COLOR: always 2024-09-04T13:02:42.5169530Z CACHE_ON_FAILURE: false 2024-09-04T13:02:42.5170164Z pythonLocation: /opt/hostedtoolcache/Python/3.12.5/x64 2024-09-04T13:02:42.5170718Z PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.5/x64/lib/pkgconfig 2024-09-04T13:02:42.5171358Z Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.5/x64 2024-09-04T13:02:42.5171836Z Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.5/x64 2024-09-04T13:02:42.5172307Z Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.5/x64 2024-09-04T13:02:42.5172797Z LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.5/x64/lib 2024-09-04T13:02:42.5173200Z ##[endgroup] 2024-09-04T13:02:42.5259242Z ##[group]Run echo -e "Running release script.." 2024-09-04T13:02:42.5259754Z echo -e "Running release script.." 2024-09-04T13:02:42.5260113Z  2024-09-04T13:02:42.5260412Z # Instead of running the script directly, 2024-09-04T13:02:42.5261113Z # we source it to get the variables in the current shell and use them in the next steps by exporting them 2024-09-04T13:02:42.5261750Z source src/main.sh 2024-09-04T13:02:42.5262026Z  2024-09-04T13:02:42.5262315Z # Export the variables for the next steps 2024-09-04T13:02:42.5262853Z echo "GRAPHENEOS_OTA_TARGET=${GRAPHENEOS[OTA_TARGET]}" >> $GITHUB_ENV 2024-09-04T13:02:42.5263484Z echo "OUTPUTS_PATCHED_OTA=${OUTPUTS[PATCHED_OTA]}" >> $GITHUB_ENV 2024-09-04T13:02:42.5263997Z echo "WORKDIR=${WORKDIR}" >> $GITHUB_ENV 2024-09-04T13:02:42.5286364Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-09-04T13:02:42.5286770Z env: 2024-09-04T13:02:42.5287020Z CARGO_INCREMENTAL: 0 2024-09-04T13:02:42.5287292Z DEVICE_NAME: bramble 2024-09-04T13:02:42.5287572Z INTERACTIVE_MODE: false 2024-09-04T13:02:42.5287870Z GRAPHENEOS_UPDATE_CHANNEL: stable 2024-09-04T13:02:42.5288189Z RUST_BACKTRACE: short 2024-09-04T13:02:42.5288463Z RUSTUP_MAX_RETRIES: 10 2024-09-04T13:02:42.5288748Z GRAPHENEOS_VERSION: 2024083100 2024-09-04T13:02:42.5289065Z CARGO_HOME: /home/runner/.cargo 2024-09-04T13:02:42.5289376Z CARGO_TERM_COLOR: always 2024-09-04T13:02:42.5289654Z CACHE_ON_FAILURE: false 2024-09-04T13:02:42.5290341Z pythonLocation: /opt/hostedtoolcache/Python/3.12.5/x64 2024-09-04T13:02:42.5290877Z PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.5/x64/lib/pkgconfig 2024-09-04T13:02:42.5291404Z Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.5/x64 2024-09-04T13:02:42.5291883Z Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.5/x64 2024-09-04T13:02:42.5292352Z Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.5/x64 2024-09-04T13:02:42.5292842Z LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.5/x64/lib 2024-09-04T13:02:42.5545070Z KEYS_AVB_BASE64: *** 2024-09-04T13:02:42.5624410Z KEYS_CERT_OTA_BASE64: *** 2024-09-04T13:02:42.5875313Z KEYS_OTA_BASE64: *** 2024-09-04T13:02:42.5875639Z ADDITIONALS_ROOT: true 2024-09-04T13:02:42.5875922Z CLEANUP: true 2024-09-04T13:02:42.5876172Z MAGISK_PREINIT: sda15 2024-09-04T13:02:42.5876448Z PASSPHRASE_AVB: 2024-09-04T13:02:42.5876705Z PASSPHRASE_OTA: 2024-09-04T13:02:42.5876949Z ##[endgroup] 2024-09-04T13:02:42.5928716Z Running release script.. 2024-09-04T13:02:42.8701671Z GrapheneOS OTA target: `bramble-ota_update-2024083100` 2024-09-04T13:02:42.8702908Z GrapheneOS OTA URL: https://releases.grapheneos.org/bramble-ota_update-2024083100.zip 2024-09-04T13:02:42.8703745Z 2024-09-04T13:02:42.8777287Z Constructing URL for `avbroot` as `avbroot` is non-existent at `.tmp`... 2024-09-04T13:02:42.8779227Z URL for `avbroot`: https://github.com/chenxiaolong/avbroot/releases/download/v3.6.0/avbroot-3.6.0-x86_64-unknown-linux-gnu.zip 2024-09-04T13:02:42.8780642Z Downloading `avbroot`... 2024-09-04T13:02:43.2335579Z Downloading signature for `avbroot`... 2024-09-04T13:02:43.4641881Z Extracting and granting permissions for `avbroot`... 2024-09-04T13:02:43.5391656Z Cleaning up... 2024-09-04T13:02:43.5410531Z `avbroot` downloaded. 2024-09-04T13:02:43.5411107Z Verifying `avbroot`... 2024-09-04T13:02:43.5411741Z Tool avbroot is a directory in `.tmp/tools/`. Verified. 2024-09-04T13:02:43.5412105Z 2024-09-04T13:02:43.5481669Z Constructing URL for `afsr` as `afsr` is non-existent at `.tmp`... 2024-09-04T13:02:43.5482883Z URL for `afsr`: https://github.com/chenxiaolong/afsr/releases/download/v1.0.0/afsr-1.0.0-x86_64-unknown-linux-gnu.zip 2024-09-04T13:02:43.5483671Z Downloading `afsr`... 2024-09-04T13:02:43.9000545Z Downloading signature for `afsr`... 2024-09-04T13:02:44.1009668Z Extracting and granting permissions for `afsr`... 2024-09-04T13:02:44.1334013Z Cleaning up... 2024-09-04T13:02:44.1348814Z `afsr` downloaded. 2024-09-04T13:02:44.1349294Z Verifying `afsr`... 2024-09-04T13:02:44.1349892Z Tool afsr is a directory in `.tmp/tools/`. Verified. 2024-09-04T13:02:44.1350271Z 2024-09-04T13:02:44.1419795Z Constructing URL for `alterinstaller` as `alterinstaller` is non-existent at `.tmp`... 2024-09-04T13:02:44.1421889Z URL for `alterinstaller`: https://github.com/chenxiaolong/alterinstaller/releases/download/v2.0/alterinstaller-2.0-release.zip 2024-09-04T13:02:44.1422969Z Downloading `alterinstaller`... 2024-09-04T13:02:44.3773883Z Downloading signature for `alterinstaller`... 2024-09-04T13:02:44.5777250Z `alterinstaller` downloaded. 2024-09-04T13:02:44.5778057Z Verifying `alterinstaller`... 2024-09-04T13:02:44.5779246Z Module `.tmp/modules/alterinstaller.zip` found and verified in `.tmp/modules/`. 2024-09-04T13:02:44.5779807Z 2024-09-04T13:02:44.5851659Z Constructing URL for `custota` as `custota` is non-existent at `.tmp`... 2024-09-04T13:02:44.5852837Z URL for `custota`: https://github.com/chenxiaolong/custota/releases/download/v4.8/custota-4.8-release.zip 2024-09-04T13:02:44.5853514Z Downloading `custota`... 2024-09-04T13:02:44.9528494Z Downloading signature for `custota`... 2024-09-04T13:02:45.1451036Z `custota` downloaded. 2024-09-04T13:02:45.1451551Z Verifying `custota`... 2024-09-04T13:02:45.1452177Z Module `.tmp/modules/custota.zip` found and verified in `.tmp/modules/`. 2024-09-04T13:02:45.1452593Z 2024-09-04T13:02:45.1523817Z Constructing URL for `custota-tool` as `custota-tool` is non-existent at `.tmp`... 2024-09-04T13:02:45.1525149Z URL for `custota-tool`: https://github.com/chenxiaolong/Custota/releases/download/v4.8/custota-tool-4.8-x86_64-unknown-linux-gnu.zip 2024-09-04T13:02:45.1526208Z Downloading `custota-tool`... 2024-09-04T13:02:45.5127533Z Downloading signature for `custota-tool`... 2024-09-04T13:02:45.7079236Z Extracting and granting permissions for `custota-tool`... 2024-09-04T13:02:45.7403835Z Cleaning up... 2024-09-04T13:02:45.7418545Z `custota-tool` downloaded. 2024-09-04T13:02:45.7419160Z Verifying `custota-tool`... 2024-09-04T13:02:45.7419944Z Tool custota-tool is a directory in `.tmp/tools/`. Verified. 2024-09-04T13:02:45.7420970Z 2024-09-04T13:02:45.7488513Z Constructing URL for `msd` as `msd` is non-existent at `.tmp`... 2024-09-04T13:02:45.7490103Z URL for `msd`: https://github.com/chenxiaolong/msd/releases/download/v1.2/msd-1.2-release.zip 2024-09-04T13:02:45.7491121Z Downloading `msd`... 2024-09-04T13:02:46.0909648Z Downloading signature for `msd`... 2024-09-04T13:02:46.2949992Z `msd` downloaded. 2024-09-04T13:02:46.2950615Z Verifying `msd`... 2024-09-04T13:02:46.2951487Z Module `.tmp/modules/msd.zip` found and verified in `.tmp/modules/`. 2024-09-04T13:02:46.2952141Z 2024-09-04T13:02:46.3026091Z Constructing URL for `bcr` as `bcr` is non-existent at `.tmp`... 2024-09-04T13:02:46.3027520Z URL for `bcr`: https://github.com/chenxiaolong/bcr/releases/download/v1.69/bcr-1.69-release.zip 2024-09-04T13:02:46.3028549Z Downloading `bcr`... 2024-09-04T13:02:46.5677717Z Downloading signature for `bcr`... 2024-09-04T13:02:46.7516950Z `bcr` downloaded. 2024-09-04T13:02:46.7517553Z Verifying `bcr`... 2024-09-04T13:02:46.7518447Z Module `.tmp/modules/bcr.zip` found and verified in `.tmp/modules/`. 2024-09-04T13:02:46.7519255Z 2024-09-04T13:02:46.7593202Z Constructing URL for `oemunlockonboot` as `oemunlockonboot` is non-existent at `.tmp`... 2024-09-04T13:02:46.7594953Z URL for `oemunlockonboot`: https://github.com/chenxiaolong/oemunlockonboot/releases/download/v1.1/oemunlockonboot-1.1-release.zip 2024-09-04T13:02:46.7595758Z Downloading `oemunlockonboot`... 2024-09-04T13:02:46.9647433Z Downloading signature for `oemunlockonboot`... 2024-09-04T13:02:47.1757625Z `oemunlockonboot` downloaded. 2024-09-04T13:02:47.1758329Z Verifying `oemunlockonboot`... 2024-09-04T13:02:47.1759162Z Module `.tmp/modules/oemunlockonboot.zip` found and verified in `.tmp/modules/`. 2024-09-04T13:02:47.1759713Z 2024-09-04T13:02:47.1833388Z Constructing URL for `my-avbroot-setup` as `my-avbroot-setup` is non-existent at `.tmp`... 2024-09-04T13:02:47.1834869Z URL for `my-avbroot-setup`: https://github.com/chenxiaolong/my-avbroot-setup 2024-09-04T13:02:47.1835874Z Downloading `my-avbroot-setup`... 2024-09-04T13:02:47.1847423Z Cloning into '.tmp/tools/my-avbroot-setup'... 2024-09-04T13:02:47.3348661Z `my-avbroot-setup` downloaded. 2024-09-04T13:02:47.3349614Z Verifying `my-avbroot-setup`... 2024-09-04T13:02:47.3350731Z Tool my-avbroot-setup is a directory in `.tmp/tools/`. Verified. 2024-09-04T13:02:47.3351558Z 2024-09-04T13:02:47.3373857Z Downloading `magisk`... 2024-09-04T13:02:47.5845729Z `magisk` downloaded. 2024-09-04T13:02:47.5846319Z Verifying `magisk`... 2024-09-04T13:02:47.5847204Z Module `.tmp/modules/magisk.apk` found and verified in `.tmp/modules/`. 2024-09-04T13:02:47.5847961Z 2024-09-04T13:02:47.8841754Z GrapheneOS OTA target: `bramble-ota_update-2024083100` 2024-09-04T13:02:47.8843106Z GrapheneOS OTA URL: https://releases.grapheneos.org/bramble-ota_update-2024083100.zip 2024-09-04T13:02:47.8843967Z 2024-09-04T13:02:47.8844743Z Downloading OTA from: https://releases.grapheneos.org/bramble-ota_update-2024083100.zip... 2024-09-04T13:02:47.8845592Z Please be patient while the download happens. 2024-09-04T13:02:56.9351619Z OTA downloaded to: `.tmp/bramble-ota_update-2024083100.zip` 2024-09-04T13:02:56.9352061Z 2024-09-04T13:02:56.9417159Z Running script modifications... 2024-09-04T13:02:56.9439269Z Magisk is enabled. Modifying the setup script... 2024-09-04T13:02:56.9440300Z 2024-09-04T13:02:56.9530353Z The script is not run from the `my-avbroot-setup` directory. 2024-09-04T13:02:56.9530912Z Searching for the directory... 2024-09-04T13:02:56.9554293Z Virtual environment not found in path `./.tmp/tools/my-avbroot-setup`. Creating... 2024-09-04T13:03:00.0798692Z Python module `tomlkit` is required to run this script. 2024-09-04T13:03:00.0799729Z Installing... 2024-09-04T13:03:00.5804060Z Collecting tomlkit 2024-09-04T13:03:00.6056612Z Downloading tomlkit-0.13.2-py3-none-any.whl.metadata (2.7 kB) 2024-09-04T13:03:00.6177991Z Downloading tomlkit-0.13.2-py3-none-any.whl (37 kB) 2024-09-04T13:03:00.6293509Z Installing collected packages: tomlkit 2024-09-04T13:03:00.6796248Z Successfully installed tomlkit-0.13.2 2024-09-04T13:03:00.8412055Z 2024-09-04T13:03:00.8412775Z Decoding keys from base64... 2024-09-04T13:03:00.8479681Z ##[error]Process completed with exit code 1. 2024-09-04T13:03:00.8572601Z Post job cleanup. 2024-09-04T13:03:00.9523950Z [command]/usr/bin/git version 2024-09-04T13:03:00.9561824Z git version 2.46.0 2024-09-04T13:03:00.9598541Z Copying '/home/runner/.gitconfig' to '/home/runner/work/_temp/aceb32ce-ff0a-47d0-ab12-173b644dafee/.gitconfig' 2024-09-04T13:03:00.9615509Z Temporarily overriding HOME='/home/runner/work/_temp/aceb32ce-ff0a-47d0-ab12-173b644dafee' before making global git config changes 2024-09-04T13:03:00.9616814Z Adding repository directory to the temporary git global config as a safe directory 2024-09-04T13:03:00.9620990Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/PixeneOS/PixeneOS 2024-09-04T13:03:00.9658775Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2024-09-04T13:03:00.9694124Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" 2024-09-04T13:03:00.9950835Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2024-09-04T13:03:00.9975145Z http.https://github.com/.extraheader 2024-09-04T13:03:00.9989786Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader 2024-09-04T13:03:01.0025727Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" 2024-09-04T13:03:01.0497209Z Cleaning up orphan processes

pixincreate commented 2 months ago

Once generated, you should base64 encoded keys, copy that and update it and try again once.

Just to let you know, you need to set up below mentioned secrets in order for PixeneOS to work:

# keys are expected to be base64 format
AVB_KEY
CERT_OTA
OTA_KEY
# you email for pushing ota to server
EMAIL
# passphrase that you used to generate keys
PASSPHRASE_AVB
PASSPHRASE_OTA
0cwa commented 2 months ago

Could it be an issue where there is no passphrase for the keys and therefore didn't set the passphrase tokens? I figured if you have access to the tokens, you already also have access to the passphrase, so there's little point in adding a passphrase

pixincreate commented 2 months ago

No, passphrase is mandatory to be passed even if it is empty.

Passphrase is required to:

Also, do note that not having a passphrase for signing will lead to severe security risks.

0cwa commented 2 months ago

Also, do note that not having a passphrase for signing will lead to severe security risks.

Why is that?

pixincreate commented 2 months ago

Also, do note that not having a passphrase for signing will lead to severe security risks.

Why is that?

It solely exist for the sake of encryption. When you decide to not pass the passphrase, you're accepting the risk of having your keys unencrypted which can be easily accessed by anyone who has access to your PC.

Yes, it is solely optional but I wouldn't recommend that.