Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cpunion committed Nov 19, 2024
1 parent 8d70e0f commit 14834c8
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 <<EOF
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${exec_prefix}
includedir=${prefix}/include
Name: Python
Description: Embed Python into an application
Requires:
Version: 3.13
Libs.private:
Libs: -L${libdir} -lpython313
Cflags: -I${includedir}
EOF
- name: Build
run: go install -v ./...
Expand All @@ -88,7 +107,6 @@ jobs:
gopy install -v .
- name: Upload coverage to Codecov
if: matrix.sys.os == 'ubuntu-24.04'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 14834c8

Please sign in to comment.