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
02e8fb8444
commit
eabf3ce2b9
1 changed files with 18 additions and 9 deletions
27
.github/workflows/build-snapcraft.yml
vendored
27
.github/workflows/build-snapcraft.yml
vendored
|
|
@ -9,30 +9,39 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build-snapcraft:
|
build-snapcraft:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install packages
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install required packages
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt update
|
||||||
sudo apt install -y gcc xorg-dev libgtk-3-dev libgl1-mesa-dev libglu1-mesa wget snapd
|
sudo apt install -y gcc xorg-dev libgtk-3-dev libgl1-mesa-dev libglu1-mesa wget snapd
|
||||||
sudo snap refresh
|
|
||||||
sudo snap install snapcraft --classic
|
sudo snap install snapcraft --classic
|
||||||
sudo snap install multipass
|
sudo snap install multipass
|
||||||
|
|
||||||
- name: Copy Snapcraft files to source
|
- name: Copy Snapcraft files to source
|
||||||
run: |
|
run: |
|
||||||
mv dist/snapcraft/* src
|
cp -r dist/snapcraft/* src/
|
||||||
|
|
||||||
- name: List src
|
- name: Fix permissions
|
||||||
|
run: |
|
||||||
|
chmod -R a+rX src
|
||||||
|
|
||||||
|
- name: List contents of src
|
||||||
run: |
|
run: |
|
||||||
ls -l src
|
ls -l src
|
||||||
|
ls -l src/snapcraft.yaml || echo "snapcraft.yaml not found"
|
||||||
|
|
||||||
- name: Build Snapcraft
|
- name: Build Snapcraft using multipass
|
||||||
run: |
|
run: |
|
||||||
cd src
|
cd src
|
||||||
sudo env SNAPCRAFT_BUILD_ENVIRONMENT=multipass snapcraft
|
snapcraft
|
||||||
|
env:
|
||||||
|
SNAPCRAFT_BUILD_ENVIRONMENT: multipass
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload .snap artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build-snapcraft
|
name: build-snapcraft
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue