Skip to content

Commit 15b8538

Browse files
committed
Add abi-check gate on github
1 parent 38a064a commit 15b8538

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/ci-unittests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,36 @@ on:
55
workflow_dispatch:
66

77
jobs:
8+
abi-check:
9+
if: github.event.pull_request.draft == false
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v6
13+
14+
- name: Install libabigail
15+
shell: bash
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y abigail-tools
19+
20+
- name: Get mx and labsjdk
21+
shell: bash
22+
run: |
23+
git config --global http.timeout 600
24+
git clone https://github.com/graalvm/mx
25+
./mx/mx fetch-jdk -A --jdk-id labsjdk-ce-latest
26+
27+
- name: Setup mx and JAVA_HOME
28+
shell: bash
29+
run: |
30+
echo "$(pwd)/mx/" >> "$GITHUB_PATH"
31+
echo "JAVA_HOME=$HOME/.mx/jdks/labsjdk-ce-latest" >> "$GITHUB_ENV"
32+
echo "JVMCI_VERSION_CHECK=ignore" >> "$GITHUB_ENV"
33+
34+
- name: Run abi-check
35+
shell: bash
36+
run: mx abi-check
37+
838
build-standalone-artifacts:
939
if: github.event.pull_request.draft == false && success()
1040
uses: ./.github/workflows/ci-matrix-gen.yml

0 commit comments

Comments
 (0)