File tree Expand file tree Collapse file tree 3 files changed +61
-4
lines changed Expand file tree Collapse file tree 3 files changed +61
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : compspec-go custom tag and release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ release_tag :
7
+ description : Custom release tag
8
+ type : string
9
+ required : true
10
+
11
+ jobs :
12
+ release :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v4
17
+ - name : Set tag
18
+ run : |
19
+ echo "Tag for release is ${{ inputs.release_tag }}"
20
+ echo "tag=${{ inputs.release_tag }}" >> ${GITHUB_ENV}
21
+ - uses : actions/checkout@v4
22
+ - name : Setup Go
23
+ uses : actions/setup-go@v3
24
+ with :
25
+ go-version : ^1.20
26
+
27
+ - name : Build
28
+ run : |
29
+ export PATH=$PWD/bin:$PATH
30
+ make
31
+ make build-arm
32
+ make build-ppc
33
+
34
+ - name : Release
35
+ uses : softprops/action-gh-release@v1
36
+ with :
37
+ name : compspec-go ${{ env.tag }}
38
+ tag_name : ${{ env.tag }}
39
+ body : " compspec-go release ${{ env.tag }}"
40
+ files : |
41
+ bin/compsec
42
+ bin/compspec-arm
43
+ bin/compspec-ppc
44
+ env :
45
+ GITHUB_REPOSITORY : supercontainers/compspec-go
Original file line number Diff line number Diff line change 1
1
HERE ?= $(shell pwd)
2
2
LOCALBIN ?= $(shell pwd) /bin
3
3
4
- .PHONY : all build
4
+ .PHONY : all
5
5
6
- all : build-extract
6
+ all : build
7
7
8
8
.PHONY : $(LOCALBIN )
9
9
$(LOCALBIN ) :
10
10
mkdir -p $(LOCALBIN )
11
11
12
- build-extract : $(LOCALBIN )
13
- GO111MODULE=" on" go build -o $(LOCALBIN ) /compspec cmd/compspec/compspec.go
12
+ build : $(LOCALBIN )
13
+ GO111MODULE=" on" go build -o $(LOCALBIN ) /compspec cmd/compspec/compspec.go
14
+
15
+ build-arm : $(LOCALBIN )
16
+ GO111MODULE=" on" GOARCH=arm64 go build -o $(LOCALBIN ) /compspec-arm cmd/compspec/compspec.go
17
+
18
+ build-ppc : $(LOCALBIN )
19
+ GO111MODULE=" on" GOARCH=ppc64le go build -o $(LOCALBIN ) /compspec-ppc cmd/compspec/compspec.go
Original file line number Diff line number Diff line change @@ -132,6 +132,12 @@ a build will generate it for that context. We would want to save this to file:
132
132
And that's it! We would next (likely during CI) push this compatibility artifact to a URI that is likely (TBA) linked to the image.
133
133
For now we will manually remember the pairing, at least until the compatibility working group figures out the final design!
134
134
135
+ ## Check
136
+
137
+ Check is the command you would use to check a potential host against one or more existing artifacts.
138
+ For a small experiment of using create against a set of containers and then testing how to do a check, we are going to place content
139
+ in [ examples/check-lammps] ( examples/check-lammps ) .
140
+
135
141
## Extract
136
142
137
143
Extraction has two use cases, and likely you won't be running this manually, but within the context of another command:
You can’t perform that action at this time.
0 commit comments