Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make snapcraft build verbose and upload log artifacts #129

Merged
merged 2 commits into from
Oct 14, 2024
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
30 changes: 26 additions & 4 deletions .github/workflows/publish-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,37 @@ jobs:
- name: install snapcraft
run: sudo snap install snapcraft --classic
- name: build snap
continue-on-error: true
run: |
sudo snapcraft --destructive-mode
sudo snapcraft --destructive-mode --verbose
sudo rm -rf $HOME/.config/snapcraft

- name: Copy snapcraft logs
continue-on-error: true
run: |
sudo cp -r /root/.local/state/snapcraft/log/ ./

- name: Upload log artifact
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: snapcraft-log
path: log/*

- name: publish snap
if: github.repository_owner == 'FreeCAD' # Do not run on forks
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
run: snapcraft upload --release=edge freecad*.snap
- name: upload snap artifacts

- name: Gather snap package name
run: |
snapArtifactPath=$(find . -type f -name *.snap)
echo "Snap package name is: '$snapArtifactPath'"
echo "snapArtifactPath=$snapArtifactPath" >> $GITHUB_ENV

- name: Upload snap package artifact
uses: actions/upload-artifact@v4
with:
name: freecad.snap
path: freecad*.snap
name: snap-package
path: ${{ env.snapArtifactPath }}