-
-
Notifications
You must be signed in to change notification settings - Fork 80
48 lines (43 loc) · 1.46 KB
/
linux_build_artifact.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Linux Build (2/2) Artifact
concurrency:
group: linux_build_artifact_${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "**.rst"
- "docs/**"
push:
paths-ignore:
- "**.rst"
- "docs/**"
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_REPO_JAVET: ${{ secrets.DOCKERHUB_REPO_JAVET }}
JAVET_NODE_VERSION: 22.11.0
JAVET_V8_VERSION: 13.1.201.8
JAVET_VERSION: 4.1.0
jobs:
javet_linux_x86_64:
name: Build Javet Linux x86_64 Artifact
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Build the Artifact
run: |
docker build -t javet:local \
--build-arg JAVET_REPO=${{ env.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPO_JAVET }} \
--build-arg JAVET_NODE_VERSION=${{ env.JAVET_NODE_VERSION }} \
--build-arg JAVET_V8_VERSION=${{ env.JAVET_V8_VERSION }} \
--build-arg JAVET_VERSION=${{ env.JAVET_VERSION }} \
-f docker/linux-x86_64/build_artifact.Dockerfile .
- name: Copy the Artifact
run: mkdir $PWD/build && docker run --rm -i -v $PWD/build:/output javet:local cp -rf /Javet/build/libs /output
- name: Upload the Artifact
uses: actions/upload-artifact@v4
with:
name: javet-linux-x86_64
path: build/libs/javet*.jar