Fix snap package depdencencies (#909)

* change the confinement

* fix Cargo.toml

* fix snap package

* new name

Co-authored-by: AnhQuan Nguyen <j4qfrost@gmail.com>
macos-click-through
leon332157 3 years ago committed by GitHub
parent c23c176c00
commit 1e8f4aacf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,7 +4,6 @@ on: [push]
jobs: jobs:
build-windows: build-windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
@ -60,7 +59,6 @@ jobs:
path: ./target/release/neovide.zip path: ./target/release/neovide.zip
build-mac: build-mac:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
@ -121,7 +119,6 @@ jobs:
path: ./Neovide.dmg path: ./Neovide.dmg
build-linux: build-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -179,7 +176,6 @@ jobs:
path: ./target/release/neovide.tar.gz path: ./target/release/neovide.tar.gz
build-m1: build-m1:
runs-on: self-hosted runs-on: self-hosted
steps: steps:

@ -0,0 +1,32 @@
name: Releases
on:
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
jobs:
snap:
runs-on: ubuntu-20.04
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- uses: snapcore/action-build@v1
env:
SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY: 6G
id: snapcraft
- uses: actions/upload-artifact@v2
with:
name: snap
path: ${{ steps.snapcraft.outputs.snap }}
- uses: snapcore/action-publish@v1
with:
store_login: ${{ secrets.SNAPCRAFT_TOKEN }}
snap: ${{ steps.snapcraft.outputs.snap }}

@ -6,7 +6,7 @@ on:
jobs: jobs:
snap: snap:
runs-on: ubuntu-18.04 runs-on: ubuntu-20.04
steps: steps:
- name: Check out Git repository - name: Check out Git repository
@ -24,5 +24,5 @@ jobs:
- uses: snapcore/action-publish@v1 - uses: snapcore/action-publish@v1
with: with:
store_login: ${{ secrets.SNAPCRAFT_TOKEN }} store_login: ${{ secrets.SNAPCRAFT_EDGE_TOKEN }}
snap: ${{ steps.snapcraft.outputs.snap }} snap: ${{ steps.snapcraft.outputs.snap }}

@ -1,5 +1,5 @@
name: neovide # you probably want to 'snapcraft register <name>' name: neovide # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap base: core20 # the base snap is the execution environment for this snap
version: "0.8.0+git" version: "0.8.0+git"
summary: The snappiest vim editor you are likely to find. summary: The snappiest vim editor you are likely to find.
description: | description: |
@ -7,7 +7,7 @@ description: |
but it should act functionally like the terminal UI. but it should act functionally like the terminal UI.
grade: stable # must be 'stable' to release into candidate/stable channels grade: stable # must be 'stable' to release into candidate/stable channels
confinement: classic # use 'strict' once you have the right plugs and slots confinement: strict # use 'strict' once you have the right plugs and slots
build-packages: build-packages:
- cmake - cmake
- freeglut3-dev - freeglut3-dev
@ -91,6 +91,10 @@ parts:
- libfontconfig1-dev - libfontconfig1-dev
- libfreetype6-dev - libfreetype6-dev
stage-packages: stage-packages:
- libxkbcommon0
- libxkbcommon-x11-0
- libegl1-mesa-dev
- libgl1-mesa-dev
- fontconfig - fontconfig
- fonts-noto - fonts-noto
- libfontconfig1 - libfontconfig1

Loading…
Cancel
Save