diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 28ccf07..3fe41e4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -4,7 +4,6 @@ on: push: branches: - main - pull_request: jobs: publish-charm: diff --git a/.github/workflows/rock.yaml b/.github/workflows/rock.yaml new file mode 100644 index 0000000..4098c2b --- /dev/null +++ b/.github/workflows/rock.yaml @@ -0,0 +1,23 @@ +name: Build the rock on PRs + +on: + pull_request: + +jobs: + build-rock: + name: Build the rock + strategy: + fail-fast: false + max-parallel: 1 + matrix: + arch: [amd64, arm64] + runs-on: [self-hosted, linux, "${{ matrix.arch }}"] + steps: + - uses: actions/checkout@v4 + - name: setup lxd + uses: canonical/setup-lxd@v0.1.2 + - name: build rock + run: | + set -x + sudo snap install --channel latest/stable --classic rockcraft + rockcraft pack --verbosity trace