* Bump golang.org/x/crypto in the go_modules group across 1 directory Bumps the go_modules group with 1 update in the / directory: [golang.org/x/crypto](https://github.com/golang/crypto). Updates `golang.org/x/crypto` from 0.28.0 to 0.31.0 - [Commits](https://github.com/golang/crypto/compare/v0.28.0...v0.31.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect dependency-group: go_modules ... Signed-off-by: dependabot[bot] <support@github.com> * Bump github.com/quic-go/quic-go Bumps the go_modules group with 1 update in the / directory: [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go). Updates `github.com/quic-go/quic-go` from 0.47.0 to 0.48.2 - [Release notes](https://github.com/quic-go/quic-go/releases) - [Changelog](https://github.com/quic-go/quic-go/blob/master/Changelog.md) - [Commits](https://github.com/quic-go/quic-go/compare/v0.47.0...v0.48.2) --- updated-dependencies: - dependency-name: github.com/quic-go/quic-go dependency-type: indirect dependency-group: go_modules ... Signed-off-by: dependabot[bot] <support@github.com> * Create dependabot.yml * Bump github.com/xtls/xray-core Bumps [github.com/xtls/xray-core](https://github.com/xtls/xray-core) from 0.0.0-20241218133935-cab2fdefd321 to 1.8.24. - [Release notes](https://github.com/xtls/xray-core/releases) - [Commits](https://github.com/xtls/xray-core/commits/v1.8.24) --- updated-dependencies: - dependency-name: github.com/xtls/xray-core dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Create dependabot.yml * Bump actions/setup-go from 4 to 5 Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump android-actions/setup-android from 3.2.0 to 3.2.2 Bumps [android-actions/setup-android](https://github.com/android-actions/setup-android) from 3.2.0 to 3.2.2. - [Release notes](https://github.com/android-actions/setup-android/releases) - [Commits](https://github.com/android-actions/setup-android/compare/v3.2.0...v3.2.2) --- updated-dependencies: - dependency-name: android-actions/setup-android dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Bump nttld/setup-ndk from 1.4.2 to 1.5.0 Bumps [nttld/setup-ndk](https://github.com/nttld/setup-ndk) from 1.4.2 to 1.5.0. - [Release notes](https://github.com/nttld/setup-ndk/releases) - [Commits](https://github.com/nttld/setup-ndk/compare/v1.4.2...v1.5.0) --- updated-dependencies: - dependency-name: nttld/setup-ndk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update go.mod * Update go.mod * Update go.sum * Update go.sum * Update go.mod * Update go.mod * Update go.mod * Update main.yml * Update go.sum * Update go.sum * Update go.mod * Update go.mod * Update go.sum * Update go.mod * Update go.sum * Delete .github/dependabot.yml --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: 2dust <31833384+2dust@users.noreply.github.com>
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
release_tag:
|
|
required: true
|
|
type: string
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
- name: Setup Golang
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Setup JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: 21
|
|
distribution: 'temurin'
|
|
|
|
- name: Setup Android SDK Tools
|
|
uses: android-actions/setup-android@v3.2.2
|
|
with:
|
|
cmdline-tools-version: 10406996
|
|
|
|
- name: Setup Android NDK
|
|
uses: nttld/setup-ndk@v1.5.0
|
|
with:
|
|
ndk-version: 'r27b'
|
|
link-to-sdk: true
|
|
- name: Setup Go Mobile
|
|
run: |
|
|
go install golang.org/x/mobile/cmd/gomobile@latest
|
|
export PATH=$PATH:~/go/bin
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir -p assets data
|
|
bash gen_assets.sh download
|
|
cp -v data/*.dat assets/
|
|
gomobile init
|
|
go mod tidy
|
|
gomobile bind -v -androidapi 21 -ldflags='-s -w' ./
|
|
- name: Upload AndroidLibXrayLite to release
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
file: ./libv2ray*r
|
|
tag: ${{ github.event.inputs.release_tag }}
|
|
file_glob: true
|