Merge pull request #1104 from ipfs-force-community/chore/bump-v0.12.0… #681
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |