forked from Parchive/par2cmdline
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0abfdf1
commit b78142b
Showing
3 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build MacOS x64 dev binary | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-test-mac-x64: | ||
name: Build x64 MacOS binary | ||
runs-on: macos-13 | ||
steps: | ||
- uses: ConorMacBride/install-package@v1 | ||
with: | ||
# LLVM 18 introduced incompatible change with stock libc++ [https://github.com/Homebrew/homebrew-core/issues/178435#issuecomment-2270106398] | ||
brew: automake llvm@17 | ||
# force past "The `brew link` step did not complete successfully" | ||
continue-on-error: true | ||
- run: | | ||
if [ -f "`brew --prefix llvm`/bin/clang" ]; then | ||
echo "CC=`brew --prefix llvm`/bin/clang" >> $GITHUB_ENV | ||
echo "CXX=`brew --prefix llvm`/bin/clang++" >> $GITHUB_ENV | ||
echo "LDFLAGS=-L`brew --prefix llvm`/lib -Wl,-rpath,`brew --prefix llvm`/lib" >> $GITHUB_ENV | ||
echo "CFLAGS=-I`brew --prefix llvm`/include" >> $GITHUB_ENV | ||
echo "CXXFLAGS=-I`brew --prefix llvm`/include" >> $GITHUB_ENV | ||
fi | ||
- uses: actions/checkout@v3 | ||
- run: aclocal && automake --warnings=all --add-missing && autoconf --warnings=all | ||
- run: ./configure | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./config.log | ||
name: configure-macos-arm64.log | ||
retention-days: 5 | ||
if: ${{ failure() }} | ||
- run: make | ||
- run: strip par2 | ||
- run: ./par2 -h | ||
- run: make check | ||
- run: xz -9e --x86 --lzma2 par2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./par2.xz | ||
name: par2cmdline-turbo-dev-macos-arm64.xz | ||
retention-days: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters