diff --git a/.github/workflows/repro.yml b/.github/workflows/repro.yml index 7510d3f..02663ba 100644 --- a/.github/workflows/repro.yml +++ b/.github/workflows/repro.yml @@ -16,11 +16,13 @@ jobs: runs-on: ${{ matrix.os }} steps: + - uses: ilammy/msvc-dev-cmd@v1 - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: { go-version: stable } - name: Build + shell: bash run: .github/workflows/repro.sh - uses: actions/attest-build-provenance@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14590d6..b4e0bfb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,6 +57,7 @@ jobs: if: matrix.os == 'ubuntu-latest' - name: Test GORM + shell: bash run: gormlite/test.sh - name: Collect coverage diff --git a/embed/bcw2/build.sh b/embed/bcw2/build.sh index 87de031..1bc695c 100755 --- a/embed/bcw2/build.sh +++ b/embed/bcw2/build.sh @@ -16,8 +16,12 @@ cp "$ROOT"/sqlite3/*.patch build/ curl -# https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=bedrock-3.46 | tar xz cd sqlite -sh configure -make sqlite3.c +if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then + MSYS_NO_PATHCONV=1 nmake /f makefile.msc sqlite3.c +else + sh configure + make sqlite3.c +fi cd ~- mv sqlite/sqlite3.c build/