Skip to content

Commit 4babb46

Browse files
committed
chore: attempt 11/1231823 trying to build binary as release artifacts
1 parent 9ff0058 commit 4babb46

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ jobs:
1212
fail-fast: true
1313
matrix:
1414
os: [ ubuntu-latest, macos-latest ]
15-
arch: [ amd64, arm64 ]
16-
exclude:
17-
- os: macos-latest
18-
arch: arm64
15+
arch: [ x86_64, arm64 ]
1916

2017
steps:
2118
- name: Checkout

build-mupdf.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ mkdir -p "$target_dir"
1616
(
1717
cd mupdf-$VERSION-source || exit
1818
if [[ "$OS" == "linux" ]]; then
19-
if [[ "$ARCH" == "amd64" ]]; then
19+
if [[ "$ARCH" == "x86_64" ]]; then
2020
export CC="gcc"
2121
export CFLAGS="-m64"
2222
elif [[ "$ARCH" == "arm64" ]]; then
2323
export CC="aarch64-linux-gnu-gcc"
2424
fi
2525
make HAVE_X11=no HAVE_GLUT=no prefix=../../install_${OS}_${ARCH} install
2626
else
27-
if [[ "$ARCH" == "amd64" ]]; then
27+
if [[ "$ARCH" == "x86_64" ]]; then
2828
export CC="clang"
29-
export CFLAGS="-arch x86_64"
29+
export XCFLAGS="-arch x86_64"
3030
elif [[ "$ARCH" == "arm64" ]]; then
3131
export CC="clang"
32-
export CFLAGS="-arch arm64"
33-
export LDFLAGS="-L/usr/local/lib -lX11 -lGL"
32+
export XCFLAGS="-arch arm64"
33+
export XLDFLAGS="-L/usr/local/lib -lX11 -lGL"
3434
fi
3535
make HAVE_X11=no HAVE_GLUT=no prefix=../../install_${OS}_${ARCH} install
3636
fi

0 commit comments

Comments
 (0)