github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/.github/workflows/check_and_build.yaml (about) 1 name: Check & Build 2 3 on: 4 push: 5 branches: 6 - master 7 - "release-[0-9].[0-9]*" 8 paths-ignore: 9 - '**/*.md' 10 - '**/OWNERS' 11 - 'OWNERS' 12 - 'OWNERS_ALIASES' 13 14 pull_request: 15 branches: 16 - master 17 - "release-[0-9].[0-9]*" 18 paths-ignore: 19 - '**/*.md' 20 - '**/OWNERS' 21 - 'OWNERS' 22 - 'OWNERS_ALIASES' 23 24 # See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. 25 concurrency: 26 group: ${{ github.ref }}-${{ github.workflow }} 27 cancel-in-progress: true 28 29 jobs: 30 docker_build: 31 name: Docker Build 32 runs-on: ubuntu-latest 33 steps: 34 - name: Check out code into the Go module directory 35 uses: actions/checkout@v2 36 37 - name: Build-cdc 38 run: docker build -f ./deployments/ticdc/docker/Dockerfile . 39 40 - name: Build-dm 41 run: docker build -f ./dm/Dockerfile . 42 43 - name: Build-engine 44 run: docker build -f ./deployments/engine/docker/Dockerfile . 45 46 mac_build: 47 name: Mac OS Build 48 runs-on: macos-latest 49 steps: 50 - name: Check out code into the Go module directory 51 uses: actions/checkout@v2 52 53 - name: Setup Go environment 54 uses: actions/setup-go@v3 55 with: 56 go-version: '1.21' 57 58 - name: Cache Tools 59 id: cache-tools 60 uses: actions/cache@v2 61 with: 62 path: tools/bin 63 key: macos-latest-ticdc-tools-${{ hashFiles('tools/check/go.sum') }} 64 65 - name: Build 66 run: make build 67 68 - name: Check 69 run: make check 70 71 arm_build: 72 runs-on: [ARM64] 73 name: Arm Build 74 strategy: 75 fail-fast: false 76 matrix: 77 arch: [ARM64] 78 steps: 79 - name: Check out code 80 uses: actions/checkout@v2 81 82 - name: Setup Go environment 83 uses: actions/setup-go@v3 84 with: 85 go-version: '1.21' 86 87 - name: Build 88 run: make build