diff --git a/.github/workflows/build-snap.yml b/.github/workflows/build-snap.yml index 3b841a0..e04cb40 100644 --- a/.github/workflows/build-snap.yml +++ b/.github/workflows/build-snap.yml @@ -5,8 +5,7 @@ name: Build Snap # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: - pull_request: - branches: [ master ] + pull_request # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -20,7 +19,7 @@ jobs: - uses: actions/checkout@v2 - uses: snapcore/action-build@v1 id: snapcraft - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 with: name: charm.snap path: ${{ steps.snapcraft.outputs.snap }} diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6fb4ef8..9672345 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -37,6 +37,13 @@ parts: source: . plugin: python python-version: python3 + build-packages: + - libffi-dev + - libpython3.10-dev + - python3-pip + - rustc + - cargo + - pkg-config stage-packages: - git-core - libssl-dev