File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Create new release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ tags :
7
+ - ' *.*'
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+
15
+ - name : Build arm64
16
+ env :
17
+ CONTAINER : 1.23.6-arm
18
+ ARCH : arm64
19
+ run : >
20
+ docker run
21
+ -v .:/go/src/github.com/virtuos/opencast-ca-display
22
+ -w /go/src/github.com/virtuos/opencast-ca-display
23
+ -e CGO_ENABLED=0
24
+ docker.elastic.co/beats-dev/golang-crossbuild:${CONTAINER}
25
+ --build-cmd "go build -o opencast-ca-display.linux-${ARCH}"
26
+ -p linux/${ARCH}
27
+
28
+ - name : Build armv7
29
+ env :
30
+ CONTAINER : 1.23.6-armhf
31
+ ARCH : armv7
32
+ run : >
33
+ docker run
34
+ -v .:/go/src/github.com/virtuos/opencast-ca-display
35
+ -w /go/src/github.com/virtuos/opencast-ca-display
36
+ -e CGO_ENABLED=0
37
+ docker.elastic.co/beats-dev/golang-crossbuild:${CONTAINER}
38
+ --build-cmd "go build -o opencast-ca-display.linux-${ARCH}"
39
+ -p linux/${ARCH}
40
+
41
+ - name : Build amd64
42
+ env :
43
+ CONTAINER : 1.23.6-main
44
+ ARCH : amd64
45
+ run : >
46
+ docker run
47
+ -v .:/go/src/github.com/virtuos/opencast-ca-display
48
+ -w /go/src/github.com/virtuos/opencast-ca-display
49
+ -e CGO_ENABLED=0
50
+ docker.elastic.co/beats-dev/golang-crossbuild:${CONTAINER}
51
+ --build-cmd "go build -o opencast-ca-display.linux-${ARCH}"
52
+ -p linux/${ARCH}
53
+
54
+ - run : ls -lh opencast-ca-display*
55
+
56
+ - run : file opencast-ca-display*
57
+
58
+ - name : create new release
59
+ uses : softprops/action-gh-release@v2
60
+ with :
61
+ files : opencast-ca-display*
62
+ fail_on_unmatched_files : true
63
+ generate_release_notes : true
You can’t perform that action at this time.
0 commit comments