github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/.github/workflows/build.yml (about)

     1  name: build
     2  on:
     3    push:
     4      branches:
     5        - master
     6        - 'release-[0-9].[0-9]*'
     7      paths-ignore:
     8        - '**.html'
     9        - '**.md'
    10        - 'CNAME'
    11        - 'LICENSE'
    12        - 'docs/**'
    13        - 'tests/**'
    14        - 'docker/**'
    15        - '.github/workflows/**.yml'
    16    pull_request:
    17      branches:
    18        - master
    19        - 'release-[0-9].[0-9]*'
    20      paths-ignore:
    21        - '**.html'
    22        - '**.md'
    23        - 'CNAME'
    24        - 'LICENSE'
    25        - 'docs/**'
    26        - 'tests/**'
    27        - 'docker/**'
    28        - '.github/workflows/**.yml'
    29  
    30  jobs:
    31    compile:
    32      name: ${{ matrix.os }} / ${{ matrix.target}}
    33      runs-on: ${{ matrix.os }}
    34      strategy:
    35        matrix:
    36          include:
    37            - os: macos-latest
    38              target: x86_64-apple-darwin
    39  
    40            - os: ubuntu-latest
    41              target: aarch64-unknown-linux-gnu
    42  
    43            - os: windows-latest
    44              target: x86_64-pc-windows-msvc
    45      steps:
    46        - uses: actions/checkout@v2.1.0
    47  
    48        - name: Set up Go
    49          uses: actions/setup-go@v2
    50          with:
    51            go-version: 1.16
    52  
    53        - name: Run build
    54          run: make build
    55  
    56    compile-freebsd:
    57      name: Compile for FreeBSD job
    58      runs-on: ubuntu-latest
    59      steps:
    60        - uses: actions/checkout@v2.1.0
    61  
    62        - name: Set up Go
    63          uses: actions/setup-go@v2
    64          with:
    65            go-version: 1.16
    66  
    67        - name: Compile for FreeBSD
    68          run: GOOS=freebsd make build