Skip to content

Commit

Permalink
♻️ Api address info
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Apr 15, 2024
1 parent ffc0f37 commit 7f5d9b9
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
105 changes: 105 additions & 0 deletions .github/workflows/Package.core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: Release-core
on:
workflow_dispatch:

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GO_VERSION: "1.19"

jobs:
ci-pass:
name: CI is green
runs-on: ubuntu-latest
needs:
- build_release_assets
steps:
- run: exit 0

build_release_assets:
name: Build and upload assets
strategy:
fail-fast: false
matrix:
config:
- target: ios
host: macos-latest
- target: android
host: ubuntu-latest
runs-on: ${{ matrix.config.host }}
env:
TARGET: ${{ matrix.config.target }}
steps:
- name: Setup golang
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}

- name: Cache go modules (Linux)
if: matrix.config.host == 'ubuntu-latest'
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ matrix.config.host }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ matrix.config.host }}-go-
- name: Cache go modules (macOS)
if: matrix.config.host == 'macos-latest'
uses: actions/cache@v3
with:
path: |
~/Library/Caches/go-build
~/go/pkg/mod
key: ${{ matrix.config.host }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ matrix.config.host }}-go-
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ env.BRANCH }}

- name: Checkout core
uses: actions/checkout@v3
with:
repository: 'niuhuan/pikapika-go-core'
token: ${{ secrets.GH_TOKEN }}
path: 'go'

- name: Install go mobile (mobile)
run: |
go install golang.org/x/mobile/cmd/gomobile@latest
- name: Build (ios)
if: matrix.config.target == 'ios'
run: |
sh scripts/bind-ios.sh
- name: Setup java (Android)
if: matrix.config.target == 'android'
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'

- name: Setup android tools (Android)
if: matrix.config.target == 'android'
uses: android-actions/setup-android@v3
with:
cmdline-tools-version: 8512546
packages: 'platform-tools platforms;android-32 build-tools;30.0.2 ndk;23.1.7779620'

- name: Build (android)
if: matrix.config.target == 'android'
run: |
sh scripts/bind-android-debug.sh
- name: Upload Asset (All)
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.target }}-${{ github.run_number }}
path: 'go/mobile/lib'
retention-days: 3

2 changes: 2 additions & 0 deletions ci/version.info.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
v1.7.9
- [x] ✨ 下载批量删除
- [x] ✨ 桌面端密码
- [x] ♻️ 发电地址优化(核能,光伏)
- [x] ♻️ 分流地址优化(分流2,分流3)

v1.7.8
- [x] ♻️ iOS可以使用FaceID进行解锁App
Expand Down

0 comments on commit 7f5d9b9

Please sign in to comment.