From 14834c8e08e12289a8793adcf5bf1f1018fecfca Mon Sep 17 00:00:00 2001 From: Li Jie Date: Tue, 19 Nov 2024 22:03:29 +0800 Subject: [PATCH] update ci --- .github/workflows/go.yml | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 26613b3..67d2289 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -46,20 +46,20 @@ jobs: sys: - {os: macos-latest, shell: bash} - {os: ubuntu-24.04, shell: bash} - - {os: windows-latest, shell: 'msys2 {0}'} + - {os: windows-latest, shell: bash} defaults: run: shell: ${{ matrix.sys.shell }} runs-on: ${{matrix.sys.os}} steps: - - uses: msys2/setup-msys2@v2 - if: matrix.sys.os == 'windows-latest' - with: - update: true - install: >- - curl - git - pkg-config + # - uses: msys2/setup-msys2@v2 + # if: matrix.sys.os == 'windows-latest' + # with: + # update: true + # install: >- + # curl + # git + # pkg-config - uses: actions/checkout@v4 @@ -72,6 +72,25 @@ jobs: with: python-version: '3.13' update-environment: true + + - name: Generate Python pkg-config for windows (patch) + if: matrix.sys.os == 'windows-latest' + run: | + mkdir -p $PKG_CONFIG_PATH + cat > $PKG_CONFIG_PATH/python3-embed.pc <