mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-25 05:52:40 +03:00
actions: use official snap action
This commit is contained in:
parent
88adf77dd1
commit
17c9c4bcc9
28
.github/workflows/snap.yml
vendored
28
.github/workflows/snap.yml
vendored
@ -4,31 +4,17 @@ on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Build snap
|
||||
run: |
|
||||
sudo snap install snapcraft --classic
|
||||
sudo chown root:root /
|
||||
sudo apt-get remove -qy lxd lxd-client
|
||||
sudo snap install lxd
|
||||
sudo lxd init --auto
|
||||
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
|
||||
sudo snapcraft --use-lxd
|
||||
mkdir deploy
|
||||
mv yubioath-desktop*.snap yubioath-desktop-${REF}.snap
|
||||
cp yubioath-desktop*.snap deploy
|
||||
- uses: snapcore/action-build@v1
|
||||
id: snapcraft
|
||||
|
||||
- name: Install snap
|
||||
run: |
|
||||
sudo snap install yubioath-desktop*.snap --devmode
|
||||
run: sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }}
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: yubioath-desktop-snap
|
||||
path: deploy
|
||||
name: snap
|
||||
path: ${{ steps.snapcraft.outputs.snap }}
|
||||
|
@ -62,6 +62,8 @@ parts:
|
||||
python:
|
||||
plugin: nil
|
||||
build-packages:
|
||||
- curl
|
||||
- rsync
|
||||
- git
|
||||
- zlib1g-dev
|
||||
- libbz2-dev
|
||||
@ -95,6 +97,7 @@ parts:
|
||||
after: [python]
|
||||
build-packages:
|
||||
- swig
|
||||
- rsync
|
||||
build-environment:
|
||||
- PATH: /root/.pyenv/bin:$PATH
|
||||
override-build: |
|
||||
|
Loading…
Reference in New Issue
Block a user