mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2026-03-11 14:04:23 +00:00
Create build-snapcraft.yml
This commit is contained in:
parent
880d3445a3
commit
fe30ef5b97
1 changed files with 44 additions and 0 deletions
44
.github/workflows/build-snapcraft.yml
vendored
Normal file
44
.github/workflows/build-snapcraft.yml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
name: build-snapcraft
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-snapcraft:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '>=1.24'
|
||||
check-latest: true
|
||||
cache: false
|
||||
|
||||
- name: Install packages
|
||||
run: |
|
||||
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
|
||||
|
||||
- name: Copy Snapcraft files to source
|
||||
run: |
|
||||
mv dist/snapcraft src
|
||||
|
||||
- name: Build Snapcraft
|
||||
run: |
|
||||
cd src
|
||||
snapcraft
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: build-snapcraft
|
||||
path: |
|
||||
src/*.snap
|
||||
if-no-files-found: error
|
||||
compression-level: 9
|
||||
Loading…
Reference in a new issue