Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHA: split into more workflows #325

Merged
merged 1 commit into from
Nov 12, 2021
Merged
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
63 changes: 63 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Linux
on: [push, pull_request]
jobs:
linux:
strategy:
matrix:
image:
- openjdk8
- openjdk9
- openjdk10
- openjdk11
- openjdk12
- openjdk13
- openjdk14
- openjdk15
- openjdk16
- openj9-openjdk8
- openj9-openjdk11
- openj9-openjdk16
runs-on: ubuntu-latest
container: "renaissancebench/buildenv:${{ matrix.image }}"
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Cache SBT
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
~/.cache/coursier
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}

- name: Environment configuration
shell: bash
run: "tools/ci/pre-show-env.sh"

- name: Build base
shell: bash
run: "tools/ci/build-base.sh"

- name: Build JMH
shell: bash
run: "tools/ci/build-jmh.sh"

- name: Stop SBT
shell: bash
run: "tools/ci/stop-sbt.sh"

- name: Check JMH
shell: bash
run: "tools/ci/check-jmh.sh"

- name: Run the suite
shell: bash
run: "tools/ci/bench-base.sh"

- name: Run the suite with JMH
shell: bash
run: "tools/ci/bench-jmh.sh"
52 changes: 52 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: MacOS (legacy)
on: [push, pull_request]
jobs:
macos:
strategy:
matrix:
java: [ '8', '11', '13', '15' ]
runs-on: macos-latest
continue-on-error: true
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup correct Java version
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: ${{ matrix.java }}

- name: Environment configuration
shell: bash
run: "tools/ci/pre-show-env.sh"

- name: Build base
shell: bash
run: "tools/ci/build-base.sh"

- name: Build JMH
shell: bash
run: "tools/ci/build-jmh.sh"

- name: Stop SBT
shell: bash
run: "tools/ci/stop-sbt.sh"

- name: Check JMH
shell: bash
run: "tools/ci/check-jmh.sh"

- name: Dummy run and environment configuration
shell: bash
run: "tools/ci/bench-show-env.sh"

- name: Run the suite
shell: bash
run: "tools/ci/bench-base.sh"

- name: Run the suite with JMH
shell: bash
run: "tools/ci/bench-jmh.sh"
90 changes: 11 additions & 79 deletions .github/workflows/build.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: Main
on: [push, pull_request]
jobs:
checks:
Expand All @@ -9,6 +9,7 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Cache SBT
uses: actions/cache@v2
with:
Expand All @@ -17,6 +18,7 @@ jobs:
~/.sbt
~/.cache/coursier
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}

- name: Check file encoding"
shell: bash
run: tools/ci/check-encoding.sh
Expand All @@ -42,30 +44,15 @@ jobs:
run: tools/ci/check-markdown.sh

linux:
strategy:
matrix:
image:
- openjdk8
- openjdk9
- openjdk10
- openjdk11
- openjdk12
- openjdk13
- openjdk14
- openjdk15
- openjdk16
- openjdk17
- openj9-openjdk8
- openj9-openjdk11
- openj9-openjdk16
runs-on: ubuntu-latest
container: "renaissancebench/buildenv:${{ matrix.image }}"
container: "renaissancebench/buildenv:openjdk17"
continue-on-error: true
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Cache SBT
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -104,31 +91,22 @@ jobs:
run: "tools/ci/bench-jmh.sh"

macos:
strategy:
matrix:
java: [ '8', '11', '13', '15', '17' ]
runs-on: macos-latest
continue-on-error: true
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup correct Java version
uses: actions/setup-java@v2
if: ${{ matrix.java != '17' }}
with:
distribution: adopt
java-version: ${{ matrix.java }}

- name: Fetch JDK 17
if: ${{ matrix.java == '17' }}
run: |
aria2c -d ${{ runner.temp }} -o openjdk-17_macos-x64_bin.tar.gz https://download.java.net/java/GA/jdk17/0d483333a00540d886896bac774ff48b/35/GPL/openjdk-17_macos-x64_bin.tar.gz

- name: Setup JDK 17
uses: actions/setup-java@v2
if: ${{ matrix.java == '17' }}
with:
java-version: ${{ matrix.java }}
java-version: 17
distribution: jdkfile
jdkFile: ${{ runner.temp }}/openjdk-17_macos-x64_bin.tar.gz

Expand Down Expand Up @@ -165,31 +143,22 @@ jobs:
run: "tools/ci/bench-jmh.sh"

windows:
strategy:
matrix:
java: [ '8', '11' , '13', '15', '17' ]
runs-on: windows-latest
continue-on-error: true
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup correct Java version
uses: actions/setup-java@v2
if: ${{ matrix.java != '17' }}
with:
distribution: adopt
java-version: ${{ matrix.java }}

- name: Fetch JDK 17
if: ${{ matrix.java == '17' }}
run: |
aria2c -d ${{ runner.temp }} -o openjdk-17_windows-x64_bin.zip https://download.java.net/java/GA/jdk17/0d483333a00540d886896bac774ff48b/35/GPL/openjdk-17_windows-x64_bin.zip

- name: Setup JDK 17
uses: actions/setup-java@v2
if: ${{ matrix.java == '17' }}
with:
java-version: ${{ matrix.java }}
java-version: 17
distribution: jdkfile
jdkFile: ${{ runner.temp }}/openjdk-17_windows-x64_bin.zip

Expand Down Expand Up @@ -220,40 +189,3 @@ jobs:
- name: Run the suite with JMH
shell: bash
run: "tools/ci/bench-jmh.sh"

plugins:
runs-on: ubuntu-latest
container: "renaissancebench/buildenv:openjdk8-with-ant-gcc"
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache SBT
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
~/.cache/coursier
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}

- name: Environment configuration
shell: bash
run: "tools/ci/pre-show-env.sh"

- name: Build base
shell: bash
run: "tools/ci/build-base.sh"

- name: Build plugins
shell: bash
run: "tools/ci/build-plugins.sh"

- name: Stop SBT
shell: bash
run: "tools/ci/stop-sbt.sh"

- name: Run the suite with all plugins
shell: bash
run: "tools/ci/bench-plugins.sh"
40 changes: 40 additions & 0 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Plugins
on: [push, pull_request]
jobs:
plugins:
runs-on: ubuntu-latest
container: "renaissancebench/buildenv:openjdk8-with-ant-gcc"
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Cache SBT
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
~/.cache/coursier
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}

- name: Environment configuration
shell: bash
run: "tools/ci/pre-show-env.sh"

- name: Build base
shell: bash
run: "tools/ci/build-base.sh"

- name: Build plugins
shell: bash
run: "tools/ci/build-plugins.sh"

- name: Stop SBT
shell: bash
run: "tools/ci/stop-sbt.sh"

- name: Run the suite with all plugins
shell: bash
run: "tools/ci/bench-plugins.sh"
47 changes: 47 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Windows (legacy)"
on: [push, pull_request]
jobs:
windows:
strategy:
matrix:
java: [ '8', '11' , '13', '15' ]
runs-on: windows-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup correct Java version
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: ${{ matrix.java }}

- name: Environment configuration
shell: bash
run: "tools/ci/pre-show-env.sh"

- name: Build base
shell: bash
run: java -jar tools/sbt/bin/sbt-launch.jar assembly

- name: Build JMH
shell: bash
run: java -jar tools/sbt/bin/sbt-launch.jar renaissanceJmh/jmh:assembly

- name: Check JMH
shell: bash
run: "tools/ci/check-jmh.sh"

- name: Dummy run and environment configuration
shell: bash
run: "tools/ci/bench-show-env.sh"

- name: Run the suite
shell: bash
run: "tools/ci/bench-base.sh"

- name: Run the suite with JMH
shell: bash
run: "tools/ci/bench-jmh.sh"