Update plugin build action

This commit is contained in:
世界
2022-06-26 19:52:01 +08:00
parent 6cff8ea8ca
commit e4fa0cc979
5 changed files with 483 additions and 26 deletions

View File

@@ -111,31 +111,31 @@ jobs:
with:
name: "NAIVE-SHA256-${{ matrix.arch }} ${{ env.SHA256SUM }}"
path: sha256sum.txt
# pingtunnel:
# name: Native Build (PingTunnel)
# runs-on: ubuntu-latest
# needs:
# - setup
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Fetch Status
# run: git submodule status 'plugin/pingtunnel/*' > pt_status
# - name: PingTunnel Cache
# id: cache
# uses: actions/cache@v2
# with:
# path: |
# plugin/pingtunnel/src/main/jniLibs
# key: ${{ hashFiles('.github/workflows/*', 'bin/lib/pingtunnel/*', 'pt_status') }}
# - name: Install Golang
# uses: actions/setup-go@v2
# if: steps.cache.outputs.cache-hit != 'true'
# with:
# go-version: 1.16
# - name: Native Build
# if: steps.cache.outputs.cache-hit != 'true'
# run: ./run plugin pingtunnel
# pingtunnel:
# name: Native Build (PingTunnel)
# runs-on: ubuntu-latest
# needs:
# - setup
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Fetch Status
# run: git submodule status 'plugin/pingtunnel/*' > pt_status
# - name: PingTunnel Cache
# id: cache
# uses: actions/cache@v2
# with:
# path: |
# plugin/pingtunnel/src/main/jniLibs
# key: ${{ hashFiles('.github/workflows/*', 'bin/lib/pingtunnel/*', 'pt_status') }}
# - name: Install Golang
# uses: actions/setup-go@v2
# if: steps.cache.outputs.cache-hit != 'true'
# with:
# go-version: 1.16
# - name: Native Build
# if: steps.cache.outputs.cache-hit != 'true'
# run: ./run plugin pingtunnel
relaybaton:
name: Native Build (RelayBaton)
runs-on: ubuntu-latest
@@ -211,6 +211,60 @@ jobs:
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: ./run plugin hysteria
mieru:
name: Native Build (Mieru)
runs-on: ubuntu-latest
needs:
- setup
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch Status
run: git submodule status 'plugin/mieru/*' > mieru_status
- name: Mieru Cache
id: cache
uses: actions/cache@v2
with:
path: |
plugin/mieru/src/main/jniLibs
key: ${{ hashFiles('.github/workflows/*', 'bin/lib/mieru/*', 'mieru_status') }}
- name: Install Golang
uses: actions/setup-go@v2
if: steps.cache.outputs.cache-hit != 'true'
with:
go-version: 1.18.3
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: ./run plugin mieru
tuic:
name: Native Build (TUIC)
runs-on: ubuntu-latest
needs:
- setup
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch Status
run: git submodule status 'plugin/tuic/*' > tuic_status
- name: Tuic Cache
id: cache
uses: actions/cache@v2
with:
path: |
plugin/tuic/src/main/jniLibs
key: ${{ hashFiles('.github/workflows/*', 'bin/lib/tuic/*', 'tuic_status') }}
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
if: steps.cache.outputs.cache-hit != 'true'
- name: Install rust android target
run: ./run init action rust
if: steps.cache.outputs.cache-hit != 'true'
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: ./run plugin tuic
lint:
name: Android Lint
runs-on: ubuntu-latest