disable -march=native for releases
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 819e0d8..5d7b0e6 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -54,9 +54,9 @@ jobs:
fail-fast: false
matrix:
target:
- - [ "x86_64-linux", "--enable-static-exe", "" ]
- - [ "x86_64", "CC=x86_64-w64-mingw32-gcc --host x86_64-w64-mingw32 --enable-static-exe", "gcc-mingw-w64-x86-64" ]
- - [ "i686", "CC=i686-w64-mingw32-gcc --host i686-w64-mingw32 --enable-static-exe", "gcc-mingw-w64-i686" ]
+ - [ "x86_64-linux", "--enable-static-exe --disable-arch-native", "" ]
+ - [ "x86_64", "CC=x86_64-w64-mingw32-gcc --host x86_64-w64-mingw32 --enable-static-exe --disable-arch-native", "gcc-mingw-w64-x86-64" ]
+ - [ "i686", "CC=i686-w64-mingw32-gcc --host i686-w64-mingw32 --enable-static-exe --disable-arch-native", "gcc-mingw-w64-i686" ]
steps:
- name: Download source package artifact
uses: actions/download-artifact@v3
