Skip to content

Commit

Permalink
java
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Baghel <[email protected]>
  • Loading branch information
radcolor committed Mar 9, 2021
1 parent a12ae13 commit 5463cad
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
kind: pipeline
name: WireGuardX

clone:
depth: 1

steps:
- name: assembleDebug
image: archlinux:latest
environment:
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
TG_BOT_API:
from_secret: TG_BOT_API
commands:
- "export TG_BOT_API"
- "export GITHUB_TOKEN"
- bash workaround
- pacman -Sy make git gradle zip unzip wget patch ninja curl jdk8-openjdk jre8-openjdk cmake glibc --noconfirm
- bash dronebuild
4 changes: 4 additions & 0 deletions dronebuild
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ bash ${ANDROID_HOME}/cmdline-tools/tools/bin/sdkmanager --install "ndk;21.0.6113

DATE="`date +%d%m%Y-%H%M%S`"

archlinux-java status
archlinux-java fix
archlinux-java status

HEAD_COMMIT="$(git rev-parse HEAD)"
GITHUB_URL="https://github.com/SensiPeeps/WireGuardX/commit/"
DRONE_URL="https://cloud.drone.io/SensiPeeps/WireGuardX/"
Expand Down
7 changes: 7 additions & 0 deletions workaround
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# WORKAROUND for glibc 2.33 and old Docker
# Thanks to https://github.com/lxqt/lxqt-panel/pull/1562
patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \
curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \
bsdtar -C / -xvf "$patched_glibc"

0 comments on commit 5463cad

Please sign in to comment.