Skip to content

Commit 99b6515

Browse files
committed
CI: add job to test on 20.04 binary built on 22.04
ref golang/go#57328
1 parent 3c0cb92 commit 99b6515

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/go.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,24 @@ jobs:
2626
run: make build
2727
- name: Print theo-agent -version
2828
run: ./build/theo-agent -version
29+
- name: Cross build
30+
run: |
31+
GOOS=linux GOARCH=amd64 make -e buildx
32+
- name: Upload theo-agent
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: theo-agent-Linux-x86_64
36+
path: build/theo-agent-Linux-x86_64
37+
test-build:
38+
name: Test Build on 20.04
39+
needs: build
40+
runs-on: ubuntu-20.04
41+
steps:
42+
- name: Download theo-agent
43+
uses: actions/download-artifact@v3
44+
with:
45+
name: theo-agent-Linux-x86_64
46+
- name: Add execution bit to downloaded file
47+
run: chmod +x ./theo-agent-Linux-x86_64
48+
- name: Print theo-agent -version
49+
run: ./theo-agent-Linux-x86_64 -version

0 commit comments

Comments
 (0)