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

Use GitHub Actions build matrix #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
47 changes: 28 additions & 19 deletions .github/workflows/mvn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,47 @@ name: MVN Build
on: [push]

jobs:
build:
mvn-verify:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- java-version: '16'
distribution: 'zulu'
architecture: x64
cache: maven
arguments: -DskipTests=true
- java-version: '8'
distribution: 'zulu'
architecture: x64
cache: maven
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ./parsec-docker-test-image/parsec_docker_cache
path: ./parsec-testcontainers/parsec_docker_cache
key: ${{ runner.os }}-parsec_docker_cache-${{ github.sha }}
restore-keys: |
${{ runner.os }}-parsec_docker_cache-
- name: Set up JDK 16
uses: actions/setup-java@v2
- name: Cache local Maven repository
uses: actions/cache@v3
with:
java-version: '16'
distribution: 'zulu'
architecture: x64
cache: maven
- name: Build with Maven
# still needs work to get tests running on java 16
run: ./mvnw --batch-mode clean verify -DskipTests=true
- name: Set up JDK 8
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'zulu'
architecture: x64
cache: maven
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
architecture: ${{ matrix.architecture }}
cache: ${{ matrix.cache }}
- name: Build with Maven
run: ./mvnw --batch-mode clean verify

run: ./mvnw --batch-mode clean verify ${{ matrix.arguments }}
2 changes: 1 addition & 1 deletion parsec-protobuf-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
2 changes: 1 addition & 1 deletion parsec-testcontainers/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
parsec_docker_cache
parsec_docker_cache*
12 changes: 6 additions & 6 deletions parsec-testcontainers/docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
group "default" {
#targets = ["parsec", "parsec_0.7.0", "parsec_0.8.1"]
targets = ["parsec_0.8.1", "nginx-test"]
targets = ["parsec_0_8_1", "nginx-test"]
}
target "generic" {
context = "."
Expand All @@ -10,22 +10,22 @@ target "generic" {
}
target "nginx-test" {
inherits = ["generic"]
context = "./nginx"
context = "./nginx"
tags = [
"parallaxsecond/nginx-test:latest"
]
}
target "parsec" {
inherits = ["generic"]
context = "./parsec"
context = "./parsec"
args = {
PARSEC_BRANCH = "main"
}
tags = [
"parallaxsecond/parsec:latest"
]
}
target "parsec_0.8.1" {
target "parsec_0_8_1" {
inherits = ["parsec"]
args = {
PARSEC_BRANCH = "0.8.1"
Expand All @@ -34,12 +34,12 @@ target "parsec_0.8.1" {
"parallaxsecond/parsec:0.8.1"
]
}
target "parsec_0.7.0" {
target "parsec_0_7_0" {
inherits = ["parsec"]
args = {
PARSEC_BRANCH = "0.7.0"
}
tags = [
"parallaxsecond/parsec:0.7.0"
]
}
}