Skip to content

Commit

Permalink
fix: various ci issues
Browse files Browse the repository at this point in the history
- fix: dependency graph submission
- fix: maven settings for graph builder
- fix: don't rebuild repository unless it changes

Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Mar 15, 2024
1 parent 53bba90 commit d7fc80b
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
44 changes: 44 additions & 0 deletions .github/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>pkgst</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<repositories>
<repository>
<id>pkgst-maven</id>
<name>Pkgst Maven</name>
<url>https://maven.pkg.st</url>
</repository>
</repositories>
</profile>
<profile>
<id>jpms-local</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>jpms-local</id>
<name>JPMS Local</name>
<url>file:///home/runner/work/jpms/jpms/repository</url>
</repository>
</repositories>
</profile>
<profile>
<id>pkgst-jpms</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>pkgst-jpms</id>
<name>Pkgst JPMS</name>
<url>https://jpms.pkg.st</url>
</repository>
</repositories>
</profile>
</profiles>
</settings>
3 changes: 3 additions & 0 deletions .github/workflows/ci.dependency-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ jobs:
- name: "Build: Maven Dependency Graph"
continue-on-error: true
uses: advanced-security/maven-dependency-submission-action@bfd2106013da0957cdede0b6c39fb5ca25ae375e # v4.0.2
with:
directory: tools/graph
settings-file: ./.github/settings.xml
6 changes: 0 additions & 6 deletions .github/workflows/on.push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ permissions:
contents: read

jobs:
build-test:
name: "Build & Test"
uses: ./.github/workflows/ci.build-test.yml
with:
tests: false

build-dependency-graph:
name: "Build & Test"
uses: ./.github/workflows/ci.dependency-graph.yml
Expand Down

0 comments on commit d7fc80b

Please sign in to comment.