mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2026-03-11 14:04:23 +00:00
Update build-snapcraft.yml
This commit is contained in:
parent
2e348e8c75
commit
c0b0b62b24
1 changed files with 5 additions and 18 deletions
23
.github/workflows/build-snapcraft.yml
vendored
23
.github/workflows/build-snapcraft.yml
vendored
|
|
@ -8,23 +8,12 @@ on:
|
|||
|
||||
jobs:
|
||||
build-snapcraft:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install required packages
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y gcc xorg-dev libgtk-3-dev libgl1-mesa-dev libglu1-mesa wget snapd
|
||||
sudo snap install snapcraft --classic
|
||||
sudo snap install multipass
|
||||
sudo usermod -aG multipass $USER
|
||||
newgrp multipass
|
||||
multipass version
|
||||
multipass list
|
||||
|
||||
- name: Copy Snapcraft files to source
|
||||
run: |
|
||||
cp -r dist/snapcraft/* src/
|
||||
|
|
@ -38,12 +27,10 @@ jobs:
|
|||
ls -l src
|
||||
ls -l src/snapcraft.yaml || echo "snapcraft.yaml not found"
|
||||
|
||||
- name: Build Snapcraft using multipass
|
||||
run: |
|
||||
cd src
|
||||
snapcraft
|
||||
env:
|
||||
SNAPCRAFT_BUILD_ENVIRONMENT: multipass
|
||||
- name: Snapcraft
|
||||
uses: snapcore/action-build@v1
|
||||
with:
|
||||
path: src
|
||||
|
||||
- name: Upload .snap artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
|||
Loading…
Reference in a new issue