Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
theCapypara committed Oct 21, 2023
1 parent ad93f31 commit 02c22f3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
include:
- os: ubuntu-latest
arch: x86_64
- os: ubuntu-latest
arch: arm64
# broken:
#- os: ubuntu-latest
# arch: aarch64
- os: macos-11
arch: x86_64
- os: macos-11
arch: arm64
# broken:
#- os: macos-11
# arch: arm64
- os: windows-2019
arch: x86
- os: windows-2019
Expand Down Expand Up @@ -53,11 +55,16 @@ jobs:
if: matrix.os == 'macos-11'
run: |
brew install coreutils gcc sdl2 meson glib
- name: "MacOS: Set env"
if: matrix.os == 'macos-11'
- name: "Windows: Set env: AMD64"
if: matrix.os == 'windows-2019' && matrix.arch == 'AMD64'
shell: bash
run: |
echo CIBW_ENVIRONMENT_WINDOWS="FASTBUILD=1" >> $GITHUB_ENV
- name: "Windows: Set env: x64"
if: matrix.os == 'windows-2019' && matrix.arch == 'x86'
shell: bash
run: |
CC=gcc-10 >> $GITHUB_ENV
CXX=g++-10 >> $GITHUB_ENV
echo CIBW_ENVIRONMENT_WINDOWS="FASTBUILD=1 BUILD_32=1" >> $GITHUB_ENV
- name: Add msbuild to PATH
if: matrix.os == 'windows-2019'
uses: microsoft/setup-msbuild@v1
Expand All @@ -69,6 +76,9 @@ jobs:
env:
CIBW_SKIP: "*musllinux*"
CIBW_BEFORE_ALL_LINUX: "{package}/build-manylinux.sh"
CIBW_ENVIRONMENT_LINUX: 'CXXFLAGS="-DFORCE_AVX512_0=1 -D_POSIX_C_SOURCE=199309L" CFLAGS="-D_POSIX_C_SOURCE=199309L"'
CIBW_ENVIRONMENT_MACOS: "CC=gcc-10 CXX=g++-10"
CIBW_ENVIRONMENT_WINDOWS: "${{ env.CIBW_ENVIRONMENT_WINDOWS }}"
CIBW_ARCHS: ${{ matrix.arch }}
- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down
1 change: 0 additions & 1 deletion build-manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ EOF
# Posix C-Source required for some time constants.
export CXXFLAGS="-DFORCE_AVX512_0=1 -D_POSIX_C_SOURCE=199309L"
export CFLAGS="-D_POSIX_C_SOURCE=199309L"
export PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"

0 comments on commit 02c22f3

Please sign in to comment.