Skip to content

Commit 6e7464a

Browse files
pflynn-virtruclaude
andcommitted
chore(ci): add dev artifact workflow for xtest optimization
Publishes cmdline.jar to a rolling `dev` release on push to main. This enables xtest to download pre-built artifacts instead of building from source, improving CI speed. Next steps for xtest team: - Update download-artifact.sh to handle VERSION=dev - Download directly from release instead of clone+build Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f93d332 commit 6e7464a

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Publish Dev Artifact
2+
3+
on:
4+
push:
5+
branches: [main, feat/dev-artifact-workflow]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
publish-dev-artifact:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
16+
- name: Setup Buf
17+
uses: bufbuild/buf-setup-action@a47c93e0b1648d5651a065437926377d060baa99 # v1.50.0
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- name: Cache Maven packages
22+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
23+
with:
24+
path: ~/.m2
25+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
26+
restore-keys: ${{ runner.os }}-m2
27+
28+
- name: Set up JDK
29+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
30+
with:
31+
java-version: "11"
32+
distribution: "adopt"
33+
34+
- name: Build cmdline
35+
run: mvn --batch-mode clean package -DskipTests
36+
env:
37+
BUF_INPUT_HTTPS_USERNAME: opentdf-bot
38+
BUF_INPUT_HTTPS_PASSWORD: ${{ secrets.PERSONAL_ACCESS_TOKEN_OPENTDF }}
39+
40+
- name: Publish dev release
41+
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0
42+
with:
43+
tag_name: dev
44+
name: "dev (${{ github.sha }})"
45+
body: |
46+
Development build from main branch.
47+
48+
**Commit:** [`${{ github.sha }}`](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }})
49+
prerelease: true
50+
files: cmdline/target/cmdline.jar

0 commit comments

Comments
 (0)