aboutsummaryrefslogblamecommitdiffstats
path: root/.github/workflows/macos.yml
blob: 950a764257a5971ddfc440a66ae89099eddbe98e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11





                         




                  

                    

                                   
          




                                      
                                             




                                                                            



                              
---
on: push

jobs:
  macos:
    runs-on: macos-latest
    strategy:
      matrix:
        go:
          - '1.18'
          - '1.22'
    env:
      DESTDIR: ./out
      GOFLAGS: -tags=notmuch
    name: MacOS Go ${{ matrix.go }}
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-go@v5
        with:
          go-version: ${{ matrix.go }}
          check-latest: true
      - run: brew install gnupg notmuch scdoc
      - run: |
          cat >> "$GITHUB_ENV" <<EOF
          CGO_CFLAGS=-I$(brew --prefix)/include
          CGO_LDFLAGS=-L$(brew --prefix)/lib -Wl,-rpath,$(brew --prefix)/lib
          EOF
      - run: make
      - run: make install
      - run: make checkinstall
      - run: make tests