Skip to content

Commit

Permalink
Merge branch 'main' of github.com:xmtp/libxmtp into dbg-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Dec 13, 2024
2 parents c686f6c + 7c7dbdb commit b582276
Show file tree
Hide file tree
Showing 167 changed files with 7,337 additions and 4,820 deletions.
2 changes: 2 additions & 0 deletions .cargo/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[profile.default]
retries = 3
2 changes: 1 addition & 1 deletion .github/workflows/release-node-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
build-linux:
runs-on: warp-ubuntu-latest-x64-16x
runs-on: warp-ubuntu-2204-x64-16x
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-swift-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- name: Build target
env:
CROSS_NO_WARNINGS: "0"
IPHONEOS_DEPLOYMENT_TARGET: 10
run: |
cross build --release --target ${{ matrix.target }} --manifest-path bindings_ffi/Cargo.toml
- name: Upload binary
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/release-xdbg.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push xdbgDocker
name: Build and Push xmtp-debug to ghcr
on:
push:
branches:
Expand All @@ -24,6 +24,10 @@ jobs:
- name: Build xdbgDocker
run: |
nix build .#packages.${{ matrix.platform }}.xdbgDocker
- name: Build xdbg Binary
run: |
nix build .#packages.${{ matrix.platform }}.xdbg
nix path-info .#packages.${{ matrix.platform }}.xdbg | xargs -I {} cp {}/bin/xdbg ./xdbg-${{ matrix.platform }}
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Tag Docker image
Expand All @@ -35,3 +39,12 @@ jobs:
run: |
IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:xdbg-${{ matrix.platform }}
docker push $IMAGE_NAME
- name: Upload xdbg binary to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./xdbg-${{ matrix.platform }}
asset_name: xdbg-${{ matrix.platform }}
asset_content_type: application/octet-stream
2 changes: 1 addition & 1 deletion .github/workflows/test-ffi-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
- name: Run cargo nextest on FFI bindings
run: |
export CLASSPATH="${{ env.CLASSPATH }}"
cargo nextest run --manifest-path bindings_ffi/Cargo.toml --test-threads 2
cargo nextest --config-file ".cargo/nextest.toml" run --manifest-path bindings_ffi/Cargo.toml --test-threads 2
4 changes: 2 additions & 2 deletions .github/workflows/test-webassembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- "rust-toolchain"
env:
CARGO_TERM_COLOR: always
WASM_BINDGEN_TEST_TIMEOUT: 120
WASM_BINDGEN_TEST_TIMEOUT: 180
WASM_BINDGEN_TEST_ONLY_WEB: 1
WASM_BINDGEN_SPLIT_LINKED_MODULES: 1
jobs:
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Start Docker containers
run: dev/up
- name: Build WebAssembly Packages
run: cargo build --tests --release --target wasm32-unknown-unknown -p xmtp_id -p xmtp_mls -p xmtp_api_http -p xmtp_cryptography
run: cargo build --tests --release --target wasm32-unknown-unknown -p xmtp_id -p xmtp_mls -p xmtp_api_http -p xmtp_cryptography -p xmtp_common
- name: test with chrome
run: |
cargo test --release --target wasm32-unknown-unknown -p xmtp_mls -p xmtp_id -p xmtp_api_http -p xmtp_cryptography -- \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: build tests
run: cargo nextest run --no-run --workspace --tests --exclude xmtpv3 --exclude bindings_node --exclude bindings_wasm
run: cargo nextest --config-file ".cargo/nextest.toml" run --no-run --workspace --tests --exclude xmtpv3 --exclude bindings_node --exclude bindings_wasm
- name: cargo test
run: cargo nextest run --workspace --test-threads 2 --exclude xmtpv3 --exclude bindings_node --exclude bindings_wasm
run: cargo nextest --config-file ".cargo/nextest.toml" run --workspace --test-threads 2 --exclude xmtpv3 --exclude bindings_node --exclude bindings_wasm
Loading

0 comments on commit b582276

Please sign in to comment.