Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions .github/workflows/pub-onnx2circle-launchpad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,40 @@ jobs:
cd circle-mlir
tar -caf ${{ steps.prepare.outputs.tarball_file }} ${{ env.O2C_PREFIX }}

- name: Conditionally install cmake for debuild
run: |
if [ "${{ matrix.ubuntu_code }}" = "focal" ]; then
echo "Installing cmake for focal"
apt update
apt install -y cmake
fi
Comment on lines +148 to +154
Copy link
Copy Markdown
Contributor Author

@shs-park shs-park May 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The debuild and debsign, in below step, verify that cmake is installed via apt,
but the focal Docker image contains a version of cmake built directly from source.

Therefore, a temporary step has been added to install cmake via apt to satisfy the build dependency check.


- name: Signing with debuild and debsign
run: |
echo "Signing with debuild and debsign"
cd circle-mlir/${{ env.O2C_PREFIX }}
rm -rf ~/.gnupg
echo -n "${{ secrets.GPG_NNFW_SIGNING_KEY }}" | base64 --decode | gpg --import
# get fingerprint
FPR=$(gpg --list-keys --with-colons | awk -F: '$1 == "fpr" { print $10; exit }')
echo "$FPR:6:" | gpg --import-ownertrust
debuild -S -us -uc
debsign -k${FPR} ../onnx2circle_*.changes

- name: Upload to Launchpad
run: |
echo "Upload to Launchpad"
cd circle-mlir
mkdir -p ~/.ssh
echo "${{ secrets.LAUNCHPAD_NNFW_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
dput ppa:circletools/nightly ${{ steps.prepare.outputs.changes_file }}

- name: Upload artifact, onnx2circle
uses: actions/upload-artifact@v4
with:
name: onnx2circle_${{ steps.prepare.outputs.VERSION }}
retention-days: 3
path: |
circle-mlir/${{ steps.prepare.outputs.tarball_file }}

# TODO implement the create-changelog-artifact job
create-changelog-artifact:
Expand Down