.github/workflows/build_snap.yml
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sat, 13 Aug 2022 15:51:59 +0200
changeset 86 3564991cd359
parent 80 1088ce57d3c9
child 88 58cff3acaf3d
permissions -rw-r--r--
SNAP: replace lxml versions to be compatible with Beremiz.

Forcing ubuntu20 python-lxml (4.5.0) package instead of PIP vesrion (4.9.1).
4.9.1 leads to derived variable types to appear as "derived" instead of real type name.
Problem happens with plcopen/variables_infos.ysl2 and plcopen/VariableInfoCollector.py.
No clue for now about what really breaks.
name: Build Snap

on:
  workflow_dispatch:
  # push:
  #   branches: [ default ]

jobs:
  sources:
    uses: ./.github/workflows/prep_sources.yml

  build:
    needs: sources
    runs-on: ubuntu-latest

    steps:
    - name: Download source artifact
      uses: actions/download-artifact@v3
      with:
        name: source_package

    - uses: actions/checkout@v3
      with:
        # checkout directly in build/sources so that
        # sources dirs are aside snap dir
        path: build/sources

    - name: Invoke snapcraft build
      uses: snapcore/action-build@v1
      id: snapcraft
      with:
        path: build/sources

    - name: Upload built artifact
      uses: actions/upload-artifact@v3
      with:
        name: snap
        path: ${{ steps.snapcraft.outputs.snap }}