Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta8 #8

Merged
merged 8 commits into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions .github/workflows/cross_compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
build:
name: Build on ${{ matrix.os }} for ${{ matrix.goarch }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
include:
Expand Down Expand Up @@ -40,14 +40,34 @@ jobs:
with:
go-version: '1.21.1' # Set to specific Go version.

- name: Install build dependencies (macOS)
if: matrix.os == 'darwin'
run: |
brew update
brew install sqlite3

- name: Install build dependencies (Ubuntu)
if: matrix.os == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential libc6-dev libsqlite3-dev

- name: Install build dependencies (Windows)
if: matrix.os == 'windows'
run: |
choco install mingw
echo "CGO_ENABLED=1" >> $GITHUB_ENV
echo "CC=gcc" >> $GITHUB_ENV
echo "CXX=g++" >> $GITHUB_ENV

- name: Create output directory
run: mkdir -p output

- name: Compile Go for target
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
CGO_ENABLED: 1
run: |
if [ "$GOOS" = "windows" ]; then
go build -o output/gensokyo-hunyuan-${{ matrix.os }}-${{ matrix.goarch }}.exe
Expand Down
Binary file added pic/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<p align="center">
<a href="https://www.github.com/hoshinonyaruko/gensokyo-hunyuan">
<img src="pic/1.png" width="200" height="200" alt="gensokyo-hunyuan">
<img src="pic/2.png" width="200" height="200" alt="gensokyo-hunyuan">
</a>
</p>

<div align="center">

# gensokyo-hunyuan
# Gensokyo-hunyuan

_✨ 基于tencentcloud/hunyuan 的一键混元api连接器 ✨_

Expand Down
Loading