File: ci-macos-quick.yaml

package info (click to toggle)
snapd 2.74.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 81,428 kB
  • sloc: sh: 16,966; ansic: 16,788; python: 11,332; makefile: 1,897; exp: 190; awk: 58; xml: 22
file content (34 lines) | stat: -rw-r--r-- 829 bytes parent folder | download
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@v6
        with:
          go-version: stable

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

      - 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