github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/.github/workflows/build.yml (about)

     1  name: Build
     2  on:
     3    push:
     4      branches:
     5        - main
     6    pull_request:
     7    workflow_dispatch:
     8  jobs:
     9    test:
    10      strategy:
    11        matrix:
    12          go-version: ['1.22.x']
    13          os: [ubuntu-latest, macos-latest]
    14      runs-on: ${{ matrix.os }}
    15      steps:
    16      - name: Install Go
    17        uses: actions/setup-go@v4
    18        with:
    19          go-version: ${{ matrix.go-version }}
    20  
    21      - name: Checkout code
    22        uses: actions/checkout@v4
    23  
    24      - name: Setup additional system libraries
    25        if: startsWith(matrix.os, 'ubuntu')
    26        run: |
    27          sudo apt update
    28          sudo apt install -y xattr attr
    29  
    30      - name: Build AIStore on ${{ matrix.os }}
    31        run: |
    32          export GOPATH="$(go env GOPATH)"
    33          MODE="" make node # Build node without backends in production mode.
    34          MODE="debug" make node # Build node without backends in debug mode.
    35          AIS_BACKEND_PROVIDERS="aws azure gcp" MODE="" make node # Build with all backends (production mode).
    36          AIS_BACKEND_PROVIDERS="aws azure gcp" MODE="debug" make node # Build with all backends (debug mode).
    37          MEM_PROFILE="/tmp/mem" CPU_PROFILE="/tmp/cpu" make node # Build with profile.
    38          TAGS="nethttp" make node # Build with net/http transport support (fasthttp is used by default).
    39          make authn
    40          make cli
    41          make aisloader