1- name : release
1+ name : Release
22
33on :
44 push :
77
88jobs :
99 package :
10+ strategy :
11+ matrix :
12+ architecture : [amd64, arm64, arm]
13+ include :
14+ - architecture : amd64
15+ target : x86_64-unknown-linux-gnu
16+ strip : strip
17+ - architecture : arm64
18+ target : aarch64-unknown-linux-gnu
19+ strip : aarch64-linux-gnu-strip
20+ - architecture : arm
21+ target : armv7-unknown-linux-gnueabihf
22+ strip : arm-linux-gnueabihf-strip
23+ name : Package (${{ matrix.architecture }})
1024 runs-on : ubuntu-latest
1125 steps :
1226 - name : git co
2337 env :
2438 CARGO_RELEASE : " 1"
2539 PACKAGE_VERSION : ${{ steps.release-tag-meta.outputs.name }}
40+ CARGO_TARGET : ${{ matrix.target }}
41+ STRIP : ${{ matrix.strip }}
42+ ARCH : ${{ matrix.architecture }}
2643 uses : ./.github/actions/package
2744 with :
2845 entrypoint : make
@@ -32,12 +49,40 @@ jobs:
3249 uses : ./.github/actions/package
3350 with :
3451 entrypoint : /linkerd/validate-checksec.sh
35- args : /linkerd/expected-checksec.json "target/x86_64-unknown-linux-gnu/release/package/linkerd2-proxy-${{ steps.release-tag-meta.outputs.name }}-checksec.json"
52+ args : /linkerd/expected-checksec.json "target/${{ matrix.target }}/release/package/linkerd2-proxy-${{ steps.release-tag-meta.outputs.name }}-${{ matrix.architecture }}-checksec.json"
53+
54+ - name : upload artifacts
55+ uses : actions/upload-artifact@v2
56+ with :
57+ name : ${{ matrix.architecture }}-artifacts
58+ path : target/${{ matrix.target }}/release/package/*
59+
60+ release :
61+ needs : [package]
62+ name : GitHub Release
63+ runs-on : ubuntu-latest
64+ steps :
65+ - name : git co
66+ uses : actions/checkout@v1
67+
68+ - name : meta
69+ id : release-tag-meta
70+ uses : ./.github/actions/release-tag-meta
71+ with :
72+ git-ref : ${{ github.ref }}
73+
74+ - name : download artifacts
75+ uses : actions/download-artifact@v2
76+ with :
77+ path : artifacts
78+
79+ - name : display structure of downloaded files
80+ run : ls -R artifacts
3681
3782 - name : release
3883 uses : softprops/action-gh-release@b21b43d
3984 env :
4085 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4186 with :
4287 name : ${{ steps.release-tag-meta.outputs.name }}
43- files : target/x86_64-unknown-linux-gnu/release/package /*
88+ files : artifacts/** /*
0 commit comments