File: ci-macos-quick.yaml

package info (click to toggle)
snapd 2.72-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 80,412 kB
  • sloc: sh: 16,506; ansic: 16,211; python: 11,213; makefile: 1,919; exp: 190; awk: 58; xml: 22
file content (34 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: MacOS quick checks
on:
  # Only run on pull requests: not pushes
  pull_request:
    branches: ["master", "release/**", "fde-manager-features"]

jobs:
  macos-quick:
    runs-on: macos-latest
    steps:
      - uses: actions/setup-go@v5
        with:
          go-version: "1.18.x"

      - name: Checkout code
        uses: actions/checkout@v4

      - name: Install squashfs from homebrew
        run: |
          brew install squashfs

      - name: Build quick checks
        run: |
          go mod vendor
          ./mkversion.sh
          go build -tags nosecboot -o /tmp/snp ./cmd/snap

      - name: Runtime quick checks
        run: |
          /tmp/snp download hello
          /tmp/snp version
          if command -v mksquashfs; then
            /tmp/snp pack tests/lib/snaps/test-snapd-tools/ /tmp
          fi