Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #16 from wireapp/fix-pipelines
Browse files Browse the repository at this point in the history
Fix pipelines
  • Loading branch information
LukasForst authored Jul 13, 2022
2 parents 9af1020 + b3d7f99 commit 411b6b4
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 35 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/native-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,31 @@ jobs:
tests:
name: Execute tests
runs-on: ubuntu-latest
container: wirebot/cryptobox:latest
steps:
- uses: actions/checkout@v2

- name: Execute Tests
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11

- name: Build Cryptobox
run: |
make cryptobox
- name: Build Native Bindings
run: |
mvn test -DargLine="-Djava.library.path=$LD_LIBRARY_PATH"
make compile-native
- name: Try to create package
- name: Compile Cryptobox4j & Run Tests
run: |
mvn package -DskipTests
make verify-java
- name: Webhook to Wire
uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
author_name: Cryptobox4j - Test
author_name: Cryptobox4J - Test
env:
SLACK_WEBHOOK_URL: ${{ secrets.webhook }}
if: failure()
23 changes: 10 additions & 13 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,19 @@ jobs:
secrets:
webhook: ${{ secrets.WEBHOOK_RELEASE }}

# TODO: figure out why ARM builds fail after 1h in Github Actions
# test_docker_arm64:
# uses: ./.github/workflows/docker.yml
# needs: [ tests ]
# with:
# publish: false
# cryptobox_image: wirebot/cryptobox
# runtime_image: wirebot/runtime
# platform: linux/arm64
# secrets:
# docker_password: ${{ secrets.DOCKERHUB_PASSWORD }}
# webhook: ${{ secrets.WEBHOOK_RELEASE }}
test_docker_arm64:
uses: ./.github/workflows/docker.yml
with:
publish: false
cryptobox_image: wirebot/cryptobox
runtime_image: wirebot/runtime
platform: linux/arm64
secrets:
docker_password: ${{ secrets.DOCKERHUB_PASSWORD }}
webhook: ${{ secrets.WEBHOOK_RELEASE }}

test_docker_amd64:
uses: ./.github/workflows/docker.yml
needs: [ tests ]
with:
publish: false
cryptobox_image: wirebot/cryptobox
Expand Down
23 changes: 11 additions & 12 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,17 @@ jobs:
secrets:
webhook: ${{ secrets.WEBHOOK_RELEASE }}

# TODO: figure out why ARM builds fail after 1h in Github Actions
# release_docker_arm64:
# uses: ./.github/workflows/docker.yml
# needs: [ tests ]
# with:
# publish: true
# cryptobox_image: wirebot/cryptobox
# runtime_image: wirebot/runtime
# platform: linux/arm64
# secrets:
# docker_password: ${{ secrets.DOCKERHUB_PASSWORD }}
# webhook: ${{ secrets.WEBHOOK_RELEASE }}
release_docker_arm64:
uses: ./.github/workflows/docker.yml
needs: [ tests ]
with:
publish: true
cryptobox_image: wirebot/cryptobox
runtime_image: wirebot/runtime
platform: linux/arm64
secrets:
docker_password: ${{ secrets.DOCKERHUB_PASSWORD }}
webhook: ${{ secrets.WEBHOOK_RELEASE }}

release_docker_amd64:
uses: ./.github/workflows/docker.yml
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@ compile-native:
-o build/lib/$(LIBCRYPTOBOX_JNI)

.PHONY: compile-java
compile-java:
compile-java: compile-native
export LD_LIBRARY_PATH="$(PWD)/build/lib"; \
mvn package -DargLine="-Djava.library.path=$$LD_LIBRARY_PATH";
mvn package -DskipTests -DargLine="-Djava.library.path=$$LD_LIBRARY_PATH";

.PHONY: verify-java
verify-java: compile-java
export LD_LIBRARY_PATH="$(PWD)/build/lib"; \
mvn test -DskipTests -DargLine="-Djava.library.path=$$LD_LIBRARY_PATH";

.PHONY: distclean
distclean:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ See makefiles in [mk](mk) directory.
<dependency>
<groupId>com.wire</groupId>
<artifactId>cryptobox4j</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
</dependency>
```
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.wire</groupId>
<artifactId>cryptobox4j</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>

<name>Cryptobox4J</name>
<description>CryptoBox for Wire Bots</description>
Expand Down

0 comments on commit 411b6b4

Please sign in to comment.