-
Notifications
You must be signed in to change notification settings - Fork 22
50 lines (40 loc) · 1.33 KB
/
damocles-manager.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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