Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/auto-prettier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
Expand Down
29 changes: 15 additions & 14 deletions .github/workflows/build-async-profiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
if: ${{ inputs.async-profiler-tag-name }}
steps:
# 检出 async-profiler/async-profiler 项目指定的 tag
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: async-profiler/async-profiler
fetch-depth: 0
- name: Checkout the async-profiler repository by input tag name ${{ inputs.async-profiler-tag-name }}
run: git checkout ${{ inputs.async-profiler-tag-name }}
# 安装 Liberica JDK 11
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: "liberica"
java-version: "11"
Expand All @@ -41,9 +41,9 @@ jobs:
otool -L ${LIB_PROFILER_PATH}
cp ${LIB_PROFILER_PATH} libasyncProfiler-mac.dylib
# 暂存编译出来的 libasyncProfiler-mac.dylib 文件
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: async-profiler
name: async-profiler-mac
path: libasyncProfiler-mac.dylib
if-no-files-found: error

Expand All @@ -52,7 +52,7 @@ jobs:
if: ${{ inputs.async-profiler-tag-name }}
steps:
# 检出 async-profiler/async-profiler 项目指定的 tag
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: async-profiler/async-profiler
fetch-depth: 0
Expand Down Expand Up @@ -96,9 +96,9 @@ jobs:
ldd ${LIB_PROFILER_PATH}
cp ${LIB_PROFILER_PATH} libasyncProfiler-linux-x64.so
# 暂存编译出来的 libasyncProfiler-linux-x64.so 文件
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: async-profiler
name: async-profiler-linux-x64
path: libasyncProfiler-linux-x64.so
if-no-files-found: error

Expand All @@ -107,7 +107,7 @@ jobs:
if: ${{ inputs.async-profiler-tag-name }}
steps:
# 检出 async-profiler/async-profiler 项目指定的 tag
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: async-profiler/async-profiler
fetch-depth: 0
Expand Down Expand Up @@ -136,9 +136,9 @@ jobs:
ldd ${LIB_PROFILER_PATH}
cp ${LIB_PROFILER_PATH} libasyncProfiler-linux-arm64.so
# 暂存编译出来的 libasyncProfiler-linux-arm64.so 文件
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: async-profiler
name: async-profiler-linux-arm64
path: libasyncProfiler-linux-arm64.so
if-no-files-found: error

Expand All @@ -150,12 +150,13 @@ jobs:
steps:
# 检出当前 arthas 代码仓库
- name: Checkout arthas upstream repo
uses: actions/checkout@v3
uses: actions/checkout@v4
# 将上面编译任务暂存的 libasyncProfiler 动态链接库文件上传到此工作流的 artifact 包中
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: async-profiler
pattern: async-profiler-*
path: tmp-async-profiler
merge-multiple: true
# 查看上面编译任务暂存的 libasyncProfiler 动态链接库文件
- name: Modify permissions and Display structure of downloaded files
run: |
Expand All @@ -171,7 +172,7 @@ jobs:
git add async-profiler/
git commit -m "Upload arthas async-profiler libs"
- name: Push changes
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@v0.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/build-vmtool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
build-linux-x64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: "adopt"
Expand All @@ -23,9 +23,9 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: "adopt"
Expand All @@ -39,9 +39,9 @@ jobs:
runs-on: windows-2022

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: "adopt"
Expand All @@ -56,7 +56,7 @@ jobs:
# The host should always be Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
needs: [build-linux-x64, build-linux-aarch64, build-mac, build-windows]
steps:
- name: Checkout Upstream Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
Expand All @@ -103,7 +103,7 @@ jobs:
git add lib/
git commit -m "update arthas vmtool lib"
- name: Push changes
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@v0.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
# 步骤 1:检出 master 分支的代码
- name: Checkout gh-pages branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: master

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
- name: Build with Maven
run: mvn -V -ntp clean package -P full

- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
matrix:
java: [8, 11, 17, 21, 25]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: "zulu"
Expand All @@ -29,9 +29,9 @@ jobs:
matrix:
java: [8, 11]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: "zulu"
Expand All @@ -48,9 +48,9 @@ jobs:
- macos-latest
- macos-14
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: "zulu"
Expand All @@ -62,9 +62,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: "zulu"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
# 步骤 1:检出 gh-pages 分支的代码
- name: Checkout gh-pages branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: gh-pages

Expand Down