Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
dougxc committed Jul 29, 2024
1 parent eac0722 commit 2427f11
Showing 1 changed file with 52 additions and 26 deletions.
78 changes: 52 additions & 26 deletions .github/workflows/test-libgraal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,41 +66,67 @@ jobs:
id: graal
uses: ./.github/actions/get-graal

- name: 'Get bundles'
id: bundles
uses: ./.github/actions/get-bundles
with:
platform: ${{ inputs.platform }}
debug-suffix: ${{ matrix.debug-suffix }}
include-static-libs: true
# - name: 'Get bundles'
# id: bundles
# uses: ./.github/actions/get-bundles
# with:
# platform: ${{ inputs.platform }}
# debug-suffix: ${{ matrix.debug-suffix }}
# include-static-libs: true

- name: Determine mx and python version
run: |
echo "MX_VERSION=$(jq -r '.mx_version' ${{ steps.graal.outputs.path }}/common.json)" >> ${GITHUB_ENV}
echo "PYTHON_VERSION=$(grep MX_PYTHON ${{ steps.graal.outputs.path }}/ci/common.jsonnet | sed 's:.*"python\(.*\)",:\1:g')" >> ${GITHUB_ENV}
- name: Checkout graalvm/mx
uses: actions/checkout@v4
with:
repository: graalvm/mx.git
ref: ${{ env.MX_VERSION }}
fetch-depth: 1
path: ${{ env.MX_PATH }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Update mx cache
uses: actions/cache@v3
with:
path: ~/.mx
key: ${{ runner.os }}-mx-${{ hashFiles('**/suite.py') }}
restore-keys: ${{ runner.os }}-mx-
# - name: Checkout graalvm/mx
# uses: actions/checkout@v4
# with:
# repository: graalvm/mx.git
# ref: ${{ env.MX_VERSION }}
# fetch-depth: 1
# path: ${{ env.MX_PATH }}
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: ${{ env.PYTHON_VERSION }}
# - name: Update mx cache
# uses: actions/cache@v4
# with:
# path: ~/.mx
# key: ${{ runner.os }}-mx-${{ hashFiles('**/suite.py') }}
# restore-keys: ${{ runner.os }}-mx-

- name: Build libgraal
id: build-libgraal
run: ${MX_PATH}/mx --primary-suite-path ${{ steps.graal.outputs.path }}/vm --java-home=${{ steps.bundles.outputs.jdk-path }} --env libgraal build
run: |
${MX_PATH}/mx \
--primary-suite-path ${{ steps.graal.outputs.path }}/vm \
--java-home=${{ steps.bundles.outputs.jdk-path }} \
--env libgraal build || \
echo "TEST_LIBGRAAL_ERROR=failed build-libgraal" >> "GITHUB_ENV"
- name: Test libgraal
id: libgraal-gate
run: ${MX_PATH}/mx --primary-suite-path ${{ steps.graal.outputs.path }}/vm --java-home=${{ steps.bundles.outputs.jdk-path }} --env libgraal gate --task 'LibGraal Compiler'
run: |
${MX_PATH}/mx \
--primary-suite-path ${{ steps.graal.outputs.path }}/vm \
--java-home=${{ steps.bundles.outputs.jdk-path }} \
--env libgraal gate --task 'LibGraal Compiler' || \
echo "TEST_LIBGRAAL_ERROR=failed libgraal-gate" >> "GITHUB_ENV"
- name: Libgraal notify
id: libgraal-notify
uses: actions/github-script@v7
with:
script: |
const issueNumber = 8;
const { GITHUB_SERVER_URL, GITHUB_REPOSITORY, GITHUB_RUN_ID, TEST_LIBGRAAL_ERROR } = process.env;
const commentBody = `Libgraal test failure "${TEST_LIBGRAAL_ERROR}": ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}`;
console.log(process.env);
# await github.rest.issues.createComment({
# owner: 'dougxc',
# repo: 'jdk',
# issue_number: issueNumber,
# body: commentBody
# });

0 comments on commit 2427f11

Please sign in to comment.