Skip to content

Merge pull request #1077 from ipfs-force-community/fix/check-deal-info #620

Merge pull request #1077 from ipfs-force-community/fix/check-deal-info

Merge pull request #1077 from ipfs-force-community/fix/check-deal-info #620

name: damocles-manager
on:
pull_request:
branches: ["main", "release/**", "dev/coop/**"]
paths-ignore: ["*.md", "docs/**"]
push:
branches: ["main", "release/**", "dev/coop/**"]
paths-ignore: ["*.md", "docs/**"]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'damocles-manager/go.mod'
cache-dependency-path: 'damocles-manager/go.sum'
- name: Instal Dependencies
run: |
sudo apt update && sudo apt install --reinstall ocl-icd-opencl-dev libhwloc-dev -y
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
go install github.com/segmentio/golines@v0.11.0
go install mvdan.cc/gofumpt@v0.3.1
- name: Test damocles-manager
run: make test-manager
- name: Build damocles-manager
run: make build-manager
- name: Check damocles-manager
run: make check-manager
- name: Check git dirty
run: make check-git
- name: Show bins
run: ls -lha ./dist/bin/
# - name: upload damocles-manager
# uses: actions/upload-artifact@v2
# with:
# name: damocles-manager
# path: ./dist/bin/
# if-no-files-found: error
# retention-days: 3