Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Oct 6, 2023
1 parent 70e8975 commit 1b4a748
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 32 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ concurrency:
cancel-in-progress: true

on:
push:
branches:
- main
- v[0-9]+
- v[0-9]+.[0-9]+
- cryostat-v[0-9]+.[0-9]+
pull_request:
pull_request_target:
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
branches:
- main
- v[0-9]+
Expand All @@ -35,10 +35,6 @@ jobs:
distribution: 'temurin'
cache: 'maven'
- run: mvn -B -U clean install
- uses: actions/upload-artifact@v3
with:
name: cryostat-core
path: ${{ github.workspace }}/target/${{ steps.get_core_version.outputs.name }}-${{ steps.get_core_version.outputs.test_version }}.jar

build-cryostat:
needs: [build-core]
Expand Down Expand Up @@ -91,10 +87,6 @@ jobs:
runs-on: ubuntu-latest
needs: [push-to-ghcr]
steps:
- name: Install xpath
run: |
sudo apt-get update
sudo apt-get install -y libxml-xpath-perl
- uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}
Expand All @@ -105,11 +97,9 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Pull cryostat image
run: podman pull ghcr.io/${{ github.repository_owner }}/cryostat-core:pr-${{ github.event.number }}-${{ github.event.pull_request.head.sha }}-linux-${{ matrix.arch }}
- uses: skjolber/maven-cache-github-action@v1
with:
step: restore
- name: Run integration tests
run: POD_NAME=cryostat-itests CONTAINER_NAME=cryostat-itest ITEST_IMG_VERSION=latest bash repeated-integration-tests.bash
- name: Print itest logs
Expand All @@ -118,9 +108,6 @@ jobs:
- name: Print itest container logs
if: failure()
run: ls -1dt target/cryostat-*.server.log | head -n1 | xargs cat
- uses: skjolber/maven-cache-github-action@v1
with:
step: save

comment-image:
runs-on: ubuntu-latest
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/cryostat-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
build-arch:
required: true
type: string
test-version:
core-version:
required: true
type: string

Expand Down Expand Up @@ -34,15 +34,9 @@ jobs:
with:
servers: '[{"id": "github", "username": "dummy", "password": "${env.GITHUB_TOKEN_REF}"}]'
githubServer: false
- uses: skjolber/maven-cache-github-action@v1
with:
step: restore
- run: git submodule init
- run: git submodule update
- uses: actions/download-artifact@v3
with:
name: cryostat-core
- run: mvn -B -U -Dbuild.arch=${{ inputs.build-arch }} -Dio.cryostat.core.version=${{ inputs.test-version }} clean package
- run: mvn -B -U -Dbuild.arch=${{ inputs.build-arch }} -Dio.cryostat.core.version=${{ inputs.core-version }} clean package
env:
GITHUB_TOKEN_REF: ${{ secrets.GITHUB_TOKEN }}
- name: Save cryostat image
Expand All @@ -51,6 +45,3 @@ jobs:
with:
name: cryostat-${{ inputs.build-arch }}
path: ${{ github.workspace }}/cryostat-${{ inputs.build-arch }}.tar
- uses: skjolber/maven-cache-github-action@v1
with:
step: save

0 comments on commit 1b4a748

Please sign in to comment.