Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.19 KB

File metadata and controls

48 lines (37 loc) · 1.19 KB
git submodule add https://github.com/raspberrypi/utils raspberrypi-utils-git
# Install dependencies to build raspberrypi-utils
sudo apt install -y cmake device-tree-compiler libfdt-dev libgnutls28-dev

Pin repo to a specific commit or tag

cd raspberrypi-utils-git
git checkout <commit-hash-or-tag>
cd ../..
git add raspberrypi-utils-git
git commit -m "Add raspberrypi/utils submodule pinned to <commit-hash>"

When someone else clones the repo (or for your CI), they will need to initialize the submodule:

git clone --recursive https://github.com/lizcore-tech/raspberrypi-utils-rs.git
# OR if already cloned:
git submodule update --init --recursive

To publish a new version of the crate:

  • Update raspberrypi-utils repository and copy the files of the library
cd raspberrypi-utils-git/
cp -r raspberrypi-utils-git/piolib/* raspberrypi-utils-sys/piolib-src/
  • Update both Cargo.toml files with the new version raspberrypi-utils/Cargo.toml and raspberrypi-utils-sys/Cargo.toml
  • Then publish the new version:
cargo publish --dry-run
cargo publish
  • If failed due to expired token, re-login and try again:
cargo login