Skip to content

Commit

Permalink
github: test build lxd-migrate prior to pushing to LP
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Oct 20, 2023
1 parent 478eccd commit 394bd5f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Builds
on:
pull_request:
push:
branches:
- latest-edge
Expand All @@ -8,9 +9,28 @@ permissions:
contents: read

jobs:
lxd-migrate:
name: Test lxd-migrate build
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.18.x

- name: Test lxd-migrate build
run: |
set -eux
cd ~/work/lxd/lxd-migrate
CGO_ENABLED=0 go build -v -tags netgo
snap:
name: Trigger snap build
runs-on: ubuntu-22.04
needs: lxd-migrate
if: ${{ github.repository == 'canonical/lxd-pkg-snap' && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout code
Expand Down

0 comments on commit 394bd5f

Please sign in to comment.