From 9530939eea7161dbe2b17ae8bd7e43f3111967a5 Mon Sep 17 00:00:00 2001 From: SanaeFox <36219542+Hoshinonyaruko@users.noreply.github.com> Date: Sun, 21 Jan 2024 19:17:41 +0800 Subject: [PATCH] Beta5 (#5) * beta1 * beta2 * beta3 * beta4 * 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