edouard@80: name: Build Snap edouard@80: edouard@80: on: edouard@80: workflow_dispatch: edouard@80: # push: edouard@80: # branches: [ default ] edouard@80: edouard@80: jobs: edouard@80: sources: edouard@80: uses: ./.github/workflows/prep_sources.yml edouard@80: edouard@80: build: edouard@80: needs: sources edouard@80: runs-on: ubuntu-latest edouard@80: edouard@80: steps: edouard@80: - uses: actions/checkout@v3 edouard@80: with: edouard@80: # checkout directly in build/sources so that edouard@80: # sources dirs are aside snap dir edouard@90: path: beremiz_public_dist edouard@80: edouard@88: - name: Download source artifact edouard@88: uses: actions/download-artifact@v3 edouard@88: with: edouard@88: name: source_package edouard@97: edouard@97: - name: untar files edouard@97: run: tar -xvf build.tar edouard@88: edouard@90: - name: Move snap dir in build/sources edouard@90: run: | edouard@92: ls -R edouard@90: mv beremiz_public_dist/snap build/sources edouard@90: ls build/sources edouard@90: edouard@80: - name: Invoke snapcraft build edouard@80: uses: snapcore/action-build@v1 edouard@80: id: snapcraft edouard@80: with: edouard@80: path: build/sources edouard@80: edouard@80: - name: Upload built artifact edouard@80: uses: actions/upload-artifact@v3 edouard@80: with: edouard@80: name: snap edouard@80: path: ${{ steps.snapcraft.outputs.snap }} edouard@80: edouard@80: