Delete snap.yml
This commit is contained in:
parent
5e82026021
commit
f952ba0cb5
52
.github/workflows/snap.yml
vendored
52
.github/workflows/snap.yml
vendored
@ -1,52 +0,0 @@
|
|||||||
name: Snap
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Snap:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
env:
|
|
||||||
SNAPCRAFT_BUILD_INFO: 1
|
|
||||||
|
|
||||||
timeout-minutes: 60
|
|
||||||
steps:
|
|
||||||
- name: Install Snapcraft
|
|
||||||
uses: Saviq/action-snapcraft@add-channel
|
|
||||||
with:
|
|
||||||
channel: candidate
|
|
||||||
use_lxd: true
|
|
||||||
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
# Needed for version determination to work
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
# Build the parts.
|
|
||||||
sg lxd -c '/snap/bin/snapcraft build --use-lxd'
|
|
||||||
- name: Build and verify the snap
|
|
||||||
id: build-snap
|
|
||||||
env:
|
|
||||||
SNAP_ENFORCE_RESQUASHFS: 0
|
|
||||||
run: |
|
|
||||||
# Actually build the snap.
|
|
||||||
sg lxd -c '/snap/bin/snapcraft --use-lxd'
|
|
||||||
sudo snap install review-tools
|
|
||||||
/snap/bin/review-tools.snap-review *.snap
|
|
||||||
echo "::set-output name=snap-file::$( ls *.snap )"
|
|
||||||
- name: Upload the snap
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: ${{ steps.build-snap.outputs.snap-file }}
|
|
||||||
path: ${{ steps.build-snap.outputs.snap-file }}
|
|
||||||
if-no-files-found: error
|
|
||||||
Reference in New Issue
Block a user