Skip to content

Commit

Permalink
v1.3.72
Browse files Browse the repository at this point in the history
  • Loading branch information
oz123 committed Jul 24, 2024
1 parent 2eb1dad commit 1f539cb
Showing 1 changed file with 5 additions and 35 deletions.
40 changes: 5 additions & 35 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 1f539cb

Please sign in to comment.