Skip to content

Build snap

Build snap #551

Workflow file for this run

name: build
run-name: Build snap
on:
push:
branches:
- development
- development_beta
paths:
- 'snap/**'
- 'src/**'
- '!**.md'
pull_request:
paths:
- 'snap/**'
- 'src/**'
- '!**.md'
workflow_dispatch:
inputs:
test:
description: Run tests
required: true
type: boolean
default: true
ref:
description: Tag/Commit
required: false
type: string
jobs:
build:
if: ${{ !startsWith(github.ref, 'refs/tags') }}
runs-on: ${{ matrix.builder }}
strategy:
matrix:
include:
- builder: ubuntu-latest
arch: amd64
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/build
with:
ref: ${{ inputs.ref }}
id: build
- run: echo "${{ matrix.arch }}=${{ steps.build.outputs.snap }}" >> $GITHUB_OUTPUT
id: snap
outputs:
amd64: ${{ steps.snap.outputs.amd64 }}
test:
if: ${{ !(inputs.test == 'false') }}
needs: build
runs-on: ${{ matrix.builder }}
strategy:
matrix:
include:
- builder: ubuntu-latest
arch: amd64
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/test
with:
snap: ${{ needs.build.outputs[matrix.arch] }}
- uses: ./.github/actions/test
with:
snap: ${{ needs.build.outputs[matrix.arch] }}
upgrade: true