spmcmillan is creating testing snap #3
Workflow file for this run
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
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 step | |
uses: actions/checkout@v4 | |
- name: Installation step | |
run: | | |
sudo apt update | |
sudo apt install snapcraft | |
sudo snap install lxd | |
sudo snap install core24 | |
sudo lxd init --auto | |
sudo lxd waitready | |
- name: Run snapcraft step | |
run: | | |
cd tests | |
# run snapcraft in destructive mode | |
# -- network doesn't work properly otherwise | |
sudo snapcraft --destructive-mode | |
- name: Output logs step | |
if: always() | |
run: | | |
journalctl -u snap.lxd.daemon | |
sudo bash -c 'cat /root/.local/state/snapcraft/log/snapcraft*.log' |