From 34da1c8de8eb1c893d02ee9c3468d09c0f8cbc5b Mon Sep 17 00:00:00 2001 From: Werner Dietl Date: Mon, 16 Dec 2024 19:45:01 -0500 Subject: [PATCH] Minimal GitHub Actions CI setup --- .github/workflows/jspecify.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/jspecify.yml diff --git a/.github/workflows/jspecify.yml b/.github/workflows/jspecify.yml new file mode 100644 index 00000000000..38142bcc632 --- /dev/null +++ b/.github/workflows/jspecify.yml @@ -0,0 +1,31 @@ +name: JSpecify JDK CI tests + +on: + pull_request: + push: + branches: [ "main" ] + +jobs: + build_jdk: + name: Build the 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 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 +