Skip to content

Commit

Permalink
feat: 尝试在构建中添加lagr-gocq,来自Fripine/sealdice-build
Browse files Browse the repository at this point in the history
  • Loading branch information
fy0 committed Dec 26, 2024
1 parent 8f7287b commit 0925afc
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,29 @@ jobs:
name: lagrange
path: ./lag

lagrange-gocq-download:
name: Download Lagrange-Gocq
runs-on: ubuntu-latest
needs: commit-num-check
if: ${{ needs.commit-num-check.outputs.commit-count > 0 }}
steps:
- name: Download
run: |
mkdir lag
curl https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1732950480718/lagrange-gocq.linux-arm64.zip > lag/lagrange-gocq.linux-arm64.zip
curl https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1732950480559/lagrange-gocq.linux-amd64.zip > lag/lagrange-gocq.linux-amd64.zip
curl https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1732950481063/lagrange-gocq.windows-amd64.zip > lag/lagrange-gocq.windows-amd64.zip
curl https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1732950480866/lagrange-gocq.windows-386.zip > lag/lagrange-gocq.windows-386.zip
curl https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1732950568799/lagrange-gocq.darwin-arm64.zip > lag/lagrange-gocq.darwin-arm64.zip
curl https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1732950568970/lagrange-gocq.darwin-amd64.zip > lag/lagrange-gocq.darwin-amd64.zip
curl https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1732950480718/lagrange-gocq.linux-arm64.zip> lag/lagrange-gocq.android-arm64.zip
- name: Upload
uses: actions/upload-artifact@v4
with:
name: lagrange-gocq
path: ./lag

lagrange-setup:
name: Download Lagrange
runs-on: ubuntu-latest
Expand Down Expand Up @@ -125,6 +148,48 @@ jobs:
name: lagrange.${{ matrix.goos }}-${{ matrix.goarch }}
path: ./extract/Lagrange.OneBot.${{ matrix.goos }}-${{ matrix.goarch }}

lagrange-gocq-setup:
name: Download Lagrange-Gocq
runs-on: ubuntu-latest
needs: lagrange-gocq-download
strategy:
matrix:
# target: linux/amd64, linux/arm64, windows/amd64, darwin/amd64, darwin/arm64
goos: [ linux, windows, darwin, android ]
goarch: [ '386', amd64, arm64 ]
exclude:
- goos: linux
goarch: '386'
- goos: windows
goarch: arm64
- goos: windows
goarch: '386'
- goos: darwin
goarch: '386'
- goos: android
goarch: amd64
- goos: android
goarch: '386'
steps:
- name: Get Lagrange-Gocq
uses: actions/download-artifact@v4
with:
name: lagrange-gocq
path: ./lagrange

- name: Extract
run: |
mkdir extract
ls ./lagrange/lagrange-gocq.${{ matrix.goos }}-${{ matrix.goarch }}.zip
file ./lagrange/lagrange-gocq.${{ matrix.goos }}-${{ matrix.goarch }}.zip
unzip ./lagrange/lagrange-gocq.${{ matrix.goos }}-${{ matrix.goarch }}.zip -d ./extract/lagrange-gocq.${{ matrix.goos }}-${{ matrix.goarch }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: lagrange-gocq.${{ matrix.goos }}-${{ matrix.goarch }}
path: ./extract/lagrange-gocq.${{ matrix.goos }}-${{ matrix.goarch }}

ui-build:
name: Build UI
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0925afc

Please sign in to comment.