Skip to content

Commit

Permalink
chore: attempt 20/1231823 trying to build binary as release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
karkowg committed Nov 11, 2024
1 parent cbfd44c commit 1e94a4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Upload binary artifact
uses: actions/upload-artifact@v4
with:
name: mutool_${{ matrix.os }}_${{ matrix.arch }}
name: mutool_${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}_${{ matrix.arch }}
# path: bin/mutool_${{ matrix.os }}*
path: bin/mutool*

Expand Down
15 changes: 11 additions & 4 deletions build-mupdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,29 @@ cd mupdf-$VERSION-source || exit
if [[ "$OS" == "linux" ]]; then
if [[ "$ARCH" == "x86_64" ]]; then
export CC="gcc"
export CFLAGS="-m64"
export XCFLAGS="-m64"
elif [[ "$ARCH" == "arm64" ]]; then
export CC="aarch64-linux-gnu-gcc"
export CXX="aarch64-linux-gnu-g++"
export XCFLAGS="-march=armv8-a"
fi
make HAVE_X11=no HAVE_GLUT=no prefix=../. install
else
if [[ "$ARCH" == "x86_64" ]]; then
export CC="clang"
export CXX="clang++"
export XCFLAGS="-arch x86_64"
export XLDFLAGS="-L/usr/local/lib -lX11 -lGL"
export XLDFLAGS="-L/opt/X11/lib -lX11 -framework OpenGL"
export XCXXFLAGS="-v"
elif [[ "$ARCH" == "arm64" ]]; then
export CC="clang"
export CXX="clang++"
export XCFLAGS="-arch arm64"
export XLDFLAGS="-L/usr/local/lib -lX11 -lGL"
export XLDFLAGS="-L/opt/X11/lib -lX11 -framework OpenGL"
export XCXXFLAGS="-v"
fi
make HAVE_X11=no HAVE_GLUT=no prefix=../. install
ps aux | grep XQuartz
make prefix=../. install
fi

cd ..
Expand Down

0 comments on commit 1e94a4f

Please sign in to comment.