Skip to content

Commit 0006e8f

Browse files
authored
Limit PR checks to building the rock (#58)
* don't publish on PRs * add workflow for building the rock * don't register the rock
1 parent d50e147 commit 0006e8f

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
87

98
jobs:
109
publish-charm:

.github/workflows/rock.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build the rock on PRs
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build-rock:
8+
name: Build the rock
9+
strategy:
10+
fail-fast: false
11+
max-parallel: 1
12+
matrix:
13+
arch: [amd64, arm64]
14+
runs-on: [self-hosted, linux, "${{ matrix.arch }}"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: setup lxd
18+
uses: canonical/setup-lxd@v0.1.2
19+
- name: build rock
20+
run: |
21+
set -x
22+
sudo snap install --channel latest/stable --classic rockcraft
23+
rockcraft pack --verbosity trace

0 commit comments

Comments
 (0)