Skip to content

Commit

Permalink
Get wireguard module
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Dec 16, 2024
1 parent ea6c363 commit 0ae8648
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/android-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ jobs:
with:
submodules: true

- name: Checkout wireguard-go-rs recursively
run: |
git config --global --add safe.directory '*'
git submodule update --init --recursive --depth=1 wireguard-go-rs
- uses: actions/download-artifact@v4
with:
name: debug-keystore
Expand Down Expand Up @@ -387,6 +392,11 @@ jobs:
with:
submodules: true

- name: Checkout wireguard-go-rs recursively
run: |
git config --global --add safe.directory '*'
git submodule update --init --recursive --depth=1 wireguard-go-rs
- uses: actions/download-artifact@v4
with:
name: debug-keystore
Expand Down
2 changes: 1 addition & 1 deletion building/android-container-image.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ghcr.io/mullvad/mullvadvpn-app-build-android:7b6bc0f44
mullvadvpn-app-build:latest
13 changes: 6 additions & 7 deletions building/container-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CARGO_TARGET_VOLUME_NAME=${CARGO_TARGET_VOLUME_NAME:-"cargo-target"}
CARGO_REGISTRY_VOLUME_NAME=${CARGO_REGISTRY_VOLUME_NAME:-"cargo-registry"}
GRADLE_CACHE_VOLUME_NAME=${GRADLE_CACHE_VOLUME_NAME:-"gradle-cache"}
ANDROID_CREDENTIALS_DIR=${ANDROID_CREDENTIALS_DIR:-""}
CONTAINER_RUNNER=${CONTAINER_RUNNER:-"podman"}
CONTAINER_RUNNER=${CONTAINER_RUNNER:-"docker"}
# Temporarily do not use mold for linking by default due to it causing build errors.
# There's a separate issue (DES-1177) to address this problem.
# Build servers also opt out of this and instead use GNU ld.
Expand All @@ -34,10 +34,10 @@ case ${1-:""} in
;;
android)
container_image_name=$(cat "$SCRIPT_DIR/android-container-image.txt")
optional_gradle_cache_volume=(-v "$GRADLE_CACHE_VOLUME_NAME:/root/.gradle:Z")
optional_gradle_cache_volume=(-v "$GRADLE_CACHE_VOLUME_NAME:/root/.gradle")

if [ -n "$ANDROID_CREDENTIALS_DIR" ]; then
optional_android_credentials_volume=(-v "$ANDROID_CREDENTIALS_DIR:$REPO_MOUNT_TARGET/android/credentials:Z")
optional_android_credentials_volume=(-v "$ANDROID_CREDENTIALS_DIR:$REPO_MOUNT_TARGET/android/credentials")
fi

shift 1
Expand All @@ -54,9 +54,8 @@ fi

set -x
exec "$CONTAINER_RUNNER" run --rm -it \
-v "$REPO_DIR:$REPO_MOUNT_TARGET:Z" \
-v "$CARGO_TARGET_VOLUME_NAME:/cargo-target:Z" \
-v "$CARGO_REGISTRY_VOLUME_NAME:/root/.cargo/registry:Z" \
-v "$REPO_DIR:$REPO_MOUNT_TARGET" \
-v "$CARGO_TARGET_VOLUME_NAME:/cargo-target" \
-v "$CARGO_REGISTRY_VOLUME_NAME:/root/.cargo/registry" \
"${optional_gradle_cache_volume[@]}" \
"${optional_android_credentials_volume[@]}" \
"$container_image_name" bash -c "$optional_mold $*"

0 comments on commit 0ae8648

Please sign in to comment.