-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
1 changed file
with
5 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,40 +44,6 @@ jobs: | |
with: | ||
path: mh_${{ env.VERSION }}-1_amd64.deb | ||
name: mh_${{ env.VERSION }}-1_amd64.deb | ||
build-osx-amd64: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check for Homebrew | ||
run: | | ||
/usr/sbin/softwareupdate --install-rosetta --agree-to-license | ||
arch -x86_64 /usr/bin/env bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
- name: update brew | ||
run: brew update | ||
- name: Install Python and Handle Symlink Conflicts | ||
run: | | ||
# Install [email protected] | ||
arch -x86_64 /usr/local/bin/brew install [email protected] || true # Continue even if there's a conflict | ||
# Link [email protected] | ||
brew link --overwrite [email protected] | ||
- name: install libs | ||
run: | | ||
arch -x86_64 /usr/local/bin/brew install pcre2 cmocka llvm pkg-config | ||
- name: Install dependencies | ||
run: | | ||
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> $GITHUB_ENV | ||
echo 'export LDFLAGS="-L/usr/local/opt/llvm/lib"' >> $GITHUB_ENV | ||
echo 'export CPPFLAGS="-I/usr/local/opt/llvm/include"' >> $GITHUB_ENV | ||
- name: build | ||
run: | | ||
export LDFLAGS="-L/usr/local/opt/llvm/lib" | ||
export CPPFLAGS="-I/usr/local/opt/llvm/include" | ||
make mh CC=clang LIBS="$(/usr/local/bin/pkg-config --cflags --libs libpcre2-8) -lpthread" CPPFLAGS="-target x86_64-apple-macos11" PROGNAME=mh-$(uname -o | tr '[:upper:]' '[:lower:]')-x86_64-apple-macos11 | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: mh-darwin-x86_64-apple-macos11 | ||
path: mh-darwin-x86_64-apple-macos11 | ||
build-osx-arm: | ||
runs-on: macos-latest | ||
steps: | ||
|
@@ -108,7 +74,7 @@ jobs: | |
path: mh-darwin-arm64 | ||
create-release: | ||
runs-on: ubuntu-latest | ||
needs: [build, build-deb, build-osx-arm, build-osx-amd64] | ||
needs: [build, build-deb, build-osx-arm] | ||
steps: | ||
- name: Create Release | ||
id: create_release | ||
|
@@ -121,6 +87,10 @@ jobs: | |
prerelease: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: ./artifacts | ||
- name: upload mac osx arm build artifact to release | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
|