-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8,980 changed files
with
401,664 additions
and
278,747 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# | ||
# Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved. | ||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
# | ||
# This code is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License version 2 only, as | ||
# published by the Free Software Foundation. Oracle designates this | ||
# particular file as subject to the "Classpath" exception as provided | ||
# by Oracle in the LICENSE file that accompanied this code. | ||
# | ||
# This code is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
# version 2 for more details (a copy is included in the LICENSE file that | ||
# accompanied this code). | ||
# | ||
# You should have received a copy of the GNU General Public License version | ||
# 2 along with this work; if not, write to the Free Software Foundation, | ||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
# | ||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
# or visit www.oracle.com if you need additional information or have any | ||
# questions. | ||
# | ||
|
||
name: 'Build JTReg' | ||
description: 'Build JTReg' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: 'Get JTReg version configuration' | ||
id: version | ||
uses: ./.github/actions/config | ||
with: | ||
var: JTREG_VERSION | ||
|
||
- name: 'Check cache for already built JTReg' | ||
id: get-cached | ||
uses: actions/cache@v4 | ||
with: | ||
path: jtreg/installed | ||
key: jtreg-${{ steps.version.outputs.value }} | ||
|
||
- name: 'Checkout the JTReg source' | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: openjdk/jtreg | ||
ref: jtreg-${{ steps.version.outputs.value }} | ||
path: jtreg/src | ||
if: (steps.get-cached.outputs.cache-hit != 'true') | ||
|
||
- name: 'Build JTReg' | ||
run: | | ||
# Build JTReg and move files to the proper locations | ||
bash make/build.sh --jdk "$JAVA_HOME_17_X64" | ||
mkdir ../installed | ||
mv build/images/jtreg/* ../installed | ||
working-directory: jtreg/src | ||
shell: bash | ||
if: (steps.get-cached.outputs.cache-hit != 'true') | ||
|
||
- name: 'Upload JTReg artifact' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: bundles-jtreg-${{ steps.version.outputs.value }} | ||
path: jtreg/installed | ||
retention-days: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. | ||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
# | ||
# This code is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License version 2 only, as | ||
# published by the Free Software Foundation. Oracle designates this | ||
# particular file as subject to the "Classpath" exception as provided | ||
# by Oracle in the LICENSE file that accompanied this code. | ||
# | ||
# This code is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
# version 2 for more details (a copy is included in the LICENSE file that | ||
# accompanied this code). | ||
# | ||
# You should have received a copy of the GNU General Public License version | ||
# 2 along with this work; if not, write to the Free Software Foundation, | ||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
# | ||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
# or visit www.oracle.com if you need additional information or have any | ||
# questions. | ||
# | ||
|
||
function truncate_summary() { | ||
# With large hs_errs, the summary can easily exceed 1024 kB, the limit set by Github | ||
# Trim it down if so. | ||
summary_size=$(wc -c < $GITHUB_STEP_SUMMARY) | ||
if [[ $summary_size -gt 1000000 ]]; then | ||
# Trim to below 1024 kB, and cut off after the last detail group | ||
head -c 1000000 $GITHUB_STEP_SUMMARY | tac | sed -n -e '/<\/details>/,$ p' | tac > $GITHUB_STEP_SUMMARY.tmp | ||
mv $GITHUB_STEP_SUMMARY.tmp $GITHUB_STEP_SUMMARY | ||
( | ||
echo '' | ||
echo ':x: **WARNING: Summary is too large and has been truncated.**' | ||
echo '' | ||
) >> $GITHUB_STEP_SUMMARY | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: JSpecify JDK CI tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build_jdk: | ||
name: Build the JSpecify JDK | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
env: | ||
JAVA_VERSION: 23 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 23 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 23 | ||
distribution: 'temurin' | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install --only-upgrade apt | ||
sudo apt-get install gcc-10 g++-10 libxrandr-dev libxtst-dev libcups2-dev libasound2-dev | ||
- name: Install jtreg | ||
run: | | ||
wget https://builds.shipilev.net/jtreg/jtreg-7.5%2B1.zip -O /tmp/jtreg.zip | ||
unzip /tmp/jtreg.zip -d /tmp/ | ||
- name: Configure the JDK | ||
run: bash ./configure --with-jtreg=/tmp/jtreg --disable-warnings-as-errors | ||
- name: Build the JDK | ||
run: make jdk | ||
|
Oops, something went wrong.