mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-28 20:06:56 +03:00
actions: use official snap action
This commit is contained in:
parent
88adf77dd1
commit
17c9c4bcc9
32
.github/workflows/snap.yml
vendored
32
.github/workflows/snap.yml
vendored
@ -4,31 +4,17 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build snap
|
- uses: snapcore/action-build@v1
|
||||||
run: |
|
id: snapcraft
|
||||||
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
|
|
||||||
|
|
||||||
- name: Install snap
|
- name: Install snap
|
||||||
run: |
|
run: sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }}
|
||||||
sudo snap install yubioath-desktop*.snap --devmode
|
|
||||||
|
|
||||||
- name: Upload artifact
|
- uses: actions/upload-artifact@v2
|
||||||
uses: actions/upload-artifact@v1
|
with:
|
||||||
with:
|
name: snap
|
||||||
name: yubioath-desktop-snap
|
path: ${{ steps.snapcraft.outputs.snap }}
|
||||||
path: deploy
|
|
||||||
|
@ -62,6 +62,8 @@ parts:
|
|||||||
python:
|
python:
|
||||||
plugin: nil
|
plugin: nil
|
||||||
build-packages:
|
build-packages:
|
||||||
|
- curl
|
||||||
|
- rsync
|
||||||
- git
|
- git
|
||||||
- zlib1g-dev
|
- zlib1g-dev
|
||||||
- libbz2-dev
|
- libbz2-dev
|
||||||
@ -95,6 +97,7 @@ parts:
|
|||||||
after: [python]
|
after: [python]
|
||||||
build-packages:
|
build-packages:
|
||||||
- swig
|
- swig
|
||||||
|
- rsync
|
||||||
build-environment:
|
build-environment:
|
||||||
- PATH: /root/.pyenv/bin:$PATH
|
- PATH: /root/.pyenv/bin:$PATH
|
||||||
override-build: |
|
override-build: |
|
||||||
|
Loading…
Reference in New Issue
Block a user