-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Compiled main.go and pushed changes * test * 适配了频道私聊,用bolt数据库取代ini * 适配了nonebot2 * add license * add a lot * trss support * add action * add action * add action * fixbug * add wss * bugfix * fix action
- Loading branch information
1 parent
0400d3b
commit 3577012
Showing
27 changed files
with
926 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Cross Compile Go Project | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
build: | ||
name: Build on ${{ matrix.os }} for ${{ matrix.goarch }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- os: linux | ||
goarch: amd64 | ||
- os: linux | ||
goarch: 386 | ||
- os: linux | ||
goarch: arm | ||
- os: linux | ||
goarch: arm64 | ||
- os: darwin | ||
goarch: amd64 | ||
- os: darwin | ||
goarch: arm64 | ||
- os: windows | ||
goarch: amd64 | ||
- os: windows | ||
goarch: 386 | ||
- os: android | ||
goarch: arm | ||
- os: android | ||
goarch: arm64 | ||
# ... Add other combinations as needed | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.21.1' # Set to specific Go version. | ||
|
||
- name: Setup Android NDK (only for Android builds) | ||
if: matrix.os == 'android' | ||
run: | | ||
sudo apt-get install -y wget unzip | ||
wget https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip || exit 1 | ||
unzip android-ndk-r21e-linux-x86_64.zip || exit 1 | ||
export ANDROID_NDK_HOME=$PWD/android-ndk-r21e | ||
echo "ANDROID_NDK_HOME=$ANDROID_NDK_HOME" >> $GITHUB_ENV | ||
- name: Create output directory | ||
run: mkdir -p output | ||
|
||
- name: Compile Go for target | ||
env: | ||
GOOS: ${{ matrix.os }} | ||
GOARCH: ${{ matrix.goarch }} | ||
CGO_ENABLED: ${{ matrix.os == 'android' || matrix.goarch == 'arm' || matrix.goarch == 'arm64' ? '0' : '1' }} | ||
run: | | ||
go build -o output/gensokyo-${{ matrix.os }}-${{ matrix.goarch }} | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: gensokyo-${{ matrix.os }}-${{ matrix.goarch }} | ||
path: output/gensokyo-${{ matrix.os }}-${{ matrix.goarch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ idmap.db.lock | |
idmap.ini | ||
|
||
# Go specific | ||
go.mod | ||
go.sum | ||
*.exe | ||
|
||
# Ignore channel_temp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module examples | ||
|
||
go 1.17 | ||
|
||
require ( | ||
github.com/go-redis/redis/v8 v8.11.4 | ||
github.com/google/uuid v1.3.0 | ||
github.com/tencent-connect/botgo v0.0.0-00010101000000-000000000000 | ||
go.uber.org/zap v1.19.1 | ||
gopkg.in/yaml.v2 v2.4.0 | ||
) | ||
|
||
require ( | ||
github.com/cespare/xxhash/v2 v2.1.2 // indirect | ||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect | ||
github.com/go-resty/resty/v2 v2.6.0 // indirect | ||
github.com/gorilla/websocket v1.4.2 // indirect | ||
github.com/tidwall/gjson v1.9.3 // indirect | ||
github.com/tidwall/match v1.1.1 // indirect | ||
github.com/tidwall/pretty v1.2.0 // indirect | ||
go.uber.org/atomic v1.9.0 // indirect | ||
go.uber.org/multierr v1.7.0 // indirect | ||
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect | ||
) | ||
|
||
replace github.com/tencent-connect/botgo => ../ |
Oops, something went wrong.