Skip to content

Commit b0396fd

Browse files
committed
Building native file on GA
1 parent 9e1ad57 commit b0396fd

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ jobs:
8787
- name: Build uber-JAR
8888
run: make build build-uber
8989

90+
- name: Upload artifact
91+
uses: actions/upload-artifact@v4
92+
with:
93+
name: uber-jar
94+
path: target/submit-runner.jar
95+
9096
- name: Upload asset
9197
uses: k15g/action-github-asset-upload@edge
9298
if: startsWith(github.ref, 'refs/tags/v')
@@ -96,3 +102,50 @@ jobs:
96102
name: submit-runner.jar
97103
type: application/java-archive
98104
label: Uber-JAR
105+
106+
native-amd64:
107+
name: Native [amd64]
108+
runs-on: ubuntu-latest
109+
needs:
110+
- build
111+
112+
steps:
113+
- name: Checkout
114+
uses: actions/checkout@v4
115+
116+
- name: Set up QEMU
117+
uses: docker/setup-qemu-action@v3
118+
119+
- name: Set up Docker Buildx
120+
uses: docker/setup-buildx-action@v3
121+
122+
- name: Set up JDK
123+
uses: actions/setup-java@v4
124+
with:
125+
java-version: '21'
126+
distribution: corretto
127+
cache: maven
128+
129+
- name: Build
130+
run: make build
131+
132+
- name: Build native
133+
run: make native
134+
135+
- name: Rename file
136+
run: mv target/submit-runner target/submit-runner-linux-amd64
137+
138+
- name: Upload artifact
139+
uses: actions/upload-artifact@v4
140+
with:
141+
name: native-amd64
142+
path: target/submit-runner-linux-amd64
143+
144+
- name: Upload asset
145+
uses: k15g/action-github-asset-upload@edge
146+
if: startsWith(github.ref, 'refs/tags/v')
147+
with:
148+
token: ${{ secrets.GITHUB_TOKEN }}
149+
file: target/submit-runner-linux-amd64
150+
name: submit-runner-linux-amd64
151+
label: Native [amd64]

0 commit comments

Comments
 (0)