diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-04-02 12:38:17 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-02 12:38:17 +0700 |
commit | ea43aa5ed8e64ad20672f38864e0d53a5e855e2a (patch) | |
tree | 5f05eb0dc951325060d8cd86393d3048d777c7d9 | |
parent | b35e5bbfc39dafb9e109849fa881305366112b23 (diff) | |
parent | 495f0ec6597ee7d892efd855592be7dbf19ead1b (diff) | |
download | aspectj-ea43aa5ed8e64ad20672f38864e0d53a5e855e2a.tar.gz aspectj-ea43aa5ed8e64ad20672f38864e0d53a5e855e2a.zip |
Merge pull request #151 from eclipse/150-improve-ci-build
Improve CI build: create docs, use Maven cache, attach artifacts
-rw-r--r-- | .github/workflows/maven.yml | 52 |
1 files changed, 51 insertions, 1 deletions
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0a013bf15..f731a47ee 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -39,8 +39,58 @@ jobs: ./mvnw -B --version ant -version + - name: Set up cache for ~./m2/repository + uses: actions/cache@v3 + with: + path: | + ~/.m2/repository + !~/.m2/repository/org/aspectj + key: maven-${{ runner.os }}-java-${{ matrix.java }}-${{ hashFiles('**/pom.xml') }} + restore-keys: | + maven-${{ runner.os }}-java-${{ matrix.java }}- + maven-${{ runner.os }}- + maven- + - name: Compile + package code - run: ./mvnw -B --file pom.xml -DskipTests package + # Also install (not just package) for subsequent build steps + run: ./mvnw -B --file pom.xml -DskipTests install + + - name: Attach aspectjrt to build + uses: actions/upload-artifact@v3 + with: + name: aspectjrt-java${{ matrix.java }} + # Binary, source, javadoc JARs + flattened POM + path: | + aspectjrt/target/aspectjrt-*.jar + aspectjrt/target/flattened-pom.xml + + - name: Attach aspectjweaver to build + uses: actions/upload-artifact@v3 + with: + name: aspectjweaver-java${{ matrix.java }} + # Binary, source, javadoc JARs + flattened POM + path: | + aspectjweaver/target/aspectjweaver-*.jar + aspectjweaver/target/flattened-pom.xml + + - name: Attach aspectjtools to build + uses: actions/upload-artifact@v3 + with: + name: aspectjtools-java${{ matrix.java }} + # Binary, source, javadoc JARs + flattened POM + path: | + aspectjtools/target/aspectjtools-*.jar + aspectjtools/target/flattened-pom.xml + + - name: Create docs + run: ./mvnw -B --file pom.xml -DskipTests process-resources -pl docs -P create-docs + + - name: Attach docs to build + uses: actions/upload-artifact@v3 + with: + name: aspectj-docs-java${{ matrix.java }} + # Re-zip docs directory instead of wrapping existing distribution archive into another zip archive + path: aj-build/dist/docs/ - name: Run Tests # Tests in module ajde call Swing/AWT classes. Without frame buffer they throw |