Skip to content

Commit

Permalink
ci: Add missin CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamilraichouni committed Oct 26, 2024
1 parent 76a1c72 commit 63a1aa2
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
include:
- capella-version: 6.0.0
jdk-version: 17.0.6+10
java-execution-environment: JavaSE-17
- capella-version: 7.0.0
jdk-version: 17.0.11+9
java-execution-environment: JavaSE-17
steps:
- name: Identify addon
run: |
Expand All @@ -35,7 +37,7 @@ jobs:
python-version: "3.12"
- name: Install `capella-addons` CLI tool
run: pip install . && pip show capella-addons
- name: Install Capella ${{ matrix.capella-version }} from ghcr.io/dsd-dbs/capella-dockerimages/capella/remote:${{ matrix.capella-version }}-selected-dropins-main
- name: Install Capella from ghcr.io/dsd-dbs/capella-dockerimages/capella/remote:${{ matrix.capella-version }}-selected-dropins-main
run: |-
docker pull ghcr.io/dsd-dbs/capella-dockerimages/capella/remote:${{ matrix.capella-version }}-selected-dropins-main
if [ ! -d /tmp/capella_${{ matrix.capella-version }} ]; then
Expand All @@ -61,3 +63,44 @@ jobs:
fi
tar xzf jdtls.tar.gz
rm *.tar.gz
- name: Build `.classpath` file
run: |-
cd ${{ env.ADDON }}
python -m capella_addons build-classpath \
--java-execution-environment=${{ matrix.java-execution-environment }} \
$(find src -type f -name "Main.java") \
/tmp/capella_${{ matrix.capella-version }}
- name: Build workspace
run: |-
cd ${{ matrix.addon }}
rm -rf target
python -m capella_addons -v \
build-workspace \
--java-execution-environment=${{ matrix.java-execution-environment }} \
$JAVA_HOME /tmp/jdtls
- name: Package addon
run: |-
cd ${{ matrix.addon }}
python -m capella_addons -v \
package \
$JAVA_HOME \
/tmp/capella_${{ matrix.capella-version }}
# - name: Create release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ env.addon }}.${{ github.ref }}
# release_name: ${{ env.addon }} ${{ github.ref }}
# draft: false
# prerelease: false
# - name: Publish release
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ${{ env.addon }}/target/com.deutschebahn.rest-api_0.0.1.jar
# asset_name: com.deutschebahn.${{ env.addon }}_${{ github.ref }}.jar
# asset_content_type: application/java-archive

0 comments on commit 63a1aa2

Please sign in to comment.