From 599547d9cb3148a0d789f1c18efb7f98d2e17231 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Sat, 4 Apr 2020 22:28:13 -0700 Subject: [PATCH] Make binaries with Github Actions Signed-off-by: Maksym Pavlenko --- .github/workflows/build.yml | 74 +++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..3d9a422ea --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,74 @@ +name: Build +on: + push: + branches: + - master + - 'release/**' + pull_request: + branches: + - master + - 'release/**' + +jobs: + binaries: + name: Binaries + runs-on: ${{ matrix.os }} + timeout-minutes: 10 + + strategy: + matrix: + os: [ubuntu-18.04, macos-10.15, windows-2019] + + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: '1.13.8' + + - name: Set env + shell: bash + run: | + echo "::set-env name=GOPATH::${{ github.workspace }}" + echo "::add-path::${{ github.workspace }}/bin" + - name: Checkout + uses: actions/checkout@v2 + with: + path: src/github.com/containerd/containerd + + - name: Install Linux dependencies + if: startsWith(matrix.os, 'ubuntu') + run: | + sudo apt-get install -y btrfs-tools libseccomp-dev + - name: Make + run: | + make build + make binaries + working-directory: src/github.com/containerd/containerd + + man: + name: Mans + runs-on: ubuntu-18.04 + timeout-minutes: 5 + + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: '1.13.8' + + - name: Set env + shell: bash + run: | + echo "::set-env name=GOPATH::${{ github.workspace }}" + echo "::add-path::${{ github.workspace }}/bin" + - name: Checkout + uses: actions/checkout@v2 + with: + path: src/github.com/containerd/containerd + + - name: Install dependencies + run: go get -u github.com/cpuguy83/go-md2man + + - name: Make + run: make man + working-directory: src/github.com/containerd/containerd \ No newline at end of file