-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action to generate snap on push
- Loading branch information
1 parent
c774426
commit eedc6a5
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Create snap action | ||
run-name: ${{ github.actor }} is creating testing snap | ||
on: [push] | ||
jobs: | ||
Create-Snap-Action: | ||
runs-on: ubuntu-22.04 | ||
continue-on-error: true | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Installation Step | ||
run: | | ||
echo "Install snapcraft" | ||
sudo apt update | ||
sudo apt install snapcraft | ||
echo "Install snapcraft" | ||
sudo snap install lxd | ||
echo "Initialize snapcraft" | ||
sudo lxd init --auto | ||
- name: Run snapcraft | ||
run: | | ||
cd tests | ||
# run snapcraft in destructive mode | ||
# -- network doesn't work properly otherwise | ||
sudo snapcraft --destructive-mode | ||
- name: Output logs | ||
if: always() | ||
run: | | ||
journalctl -u snap.multipass.multipassd | ||
sudo bash -c 'cat /root/.local/state/snapcraft/log/snapcraft*.log' |