Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjoyo committed Feb 2, 2024
1 parent e3dd555 commit 3d958a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 46 deletions.
53 changes: 8 additions & 45 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,18 @@ jobs:
key: ${{ matrix.runner }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ matrix.runner }}-maven-
-
name: Install upx for executable compression
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: upx
version: 1.0
-
name: Prepare Maven Wrapper
run: chmod +x ./mvnw
-
name: Build native executable with Maven
run: ./mvnw package -Dnative
run: ./mvnw package -Dnative-compress
-
name: Upload Artifact
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -115,8 +121,6 @@ jobs:
with:
name: feel-engine-wrapper-${{ matrix.arch }}-runner
path: feel-engine-wrapper/target
-
run: ls -la feel-engine-wrapper/target
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -150,53 +154,12 @@ jobs:
${{ env.REGISTRY_IMAGE }}:${{ steps.vars.outputs.tag }}-${{ matrix.arch }}
${{ env.REGISTRY_IMAGE }}:latest-${{ matrix.arch }}
build-push-arm64:
if: ${{ false }} # disable for now
#needs: [build-jvm, build-python]
runs-on: macos-14
steps:
-
name: Checkout code
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
run: docker context create builders
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
endpoint: builders
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Get the version
id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
-
name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/arm64
build-args: |
TARGETARCH=arm64
push: true
tags: |
${{ env.REGISTRY_IMAGE }}:${{ steps.vars.outputs.tag }}-arm64
${{ env.REGISTRY_IMAGE }}:latest-arm64
pytest-docker:
needs: [build-push]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./bpm-ai-connectors-c8/tests
needs: [build-push]
steps:
-
name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion bpm-ai-connectors-c8/tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[pytest]
python_files=test_*.py
env_files =.env
timeout = 300
timeout = 60

log_cli = true
log_cli_level = INFO

0 comments on commit 3d958a2

Please sign in to comment.