From 611cd8b939bf49ba5ffb18561a6058290017a653 Mon Sep 17 00:00:00 2001 From: cosmo Date: Sun, 21 Jan 2024 19:16:23 +0800 Subject: [PATCH] beta5 --- .github/workflows/cross_compile.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cross_compile.yml b/.github/workflows/cross_compile.yml index c391116..ff67192 100644 --- a/.github/workflows/cross_compile.yml +++ b/.github/workflows/cross_compile.yml @@ -40,11 +40,26 @@ jobs: with: go-version: '1.21.1' # Set to specific Go version. - - name: Install build dependencies + - 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