Skip to content

Commit

Permalink
Merge pull request #186 from simondeziel/lxd-migrate-build-test
Browse files Browse the repository at this point in the history
github: test build lxd-migrate prior to pushing to LP
  • Loading branch information
tomponline authored Nov 17, 2023
2 parents 0fc5dbb + 74fb8e2 commit d837d43
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,40 @@
name: Builds
on:
pull_request:
push:
branches:
- latest-edge

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

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.20.x

- name: Test lxd-migrate build
run: |
set -eux
cd ~/work/lxd-pkg-snap/lxd-pkg-snap/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 All @@ -34,7 +58,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.18.x
go-version: 1.20.x

- name: Trigger Launchpad snap build
env:
Expand Down

0 comments on commit d837d43

Please sign in to comment.