Skip to content

Commit

Permalink
ci: build on docker debian old version, build multiple mac os x binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
oz123 committed Jul 24, 2024
1 parent 7477c05 commit 58f23d3
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install deps
Expand All @@ -18,21 +18,16 @@ jobs:
name: static-binary
path: ./mh-*
build-deb:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: 'mh'
- name: install deps
run: sudo make -C mh deb-install-deps
- name: build deb package
run: |
cd mh
git fetch --tags --force
git fetch --unshallow
make deb-export-archive
make deb-version
make deb-build
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace debian:buster bash -c "apt-get update && make -C mh deb-install-deps deb-export-archive deb-version deb-build
ls ..
- name: list files
run: ls -l
Expand All @@ -42,7 +37,7 @@ jobs:
name: deb
path: '*deb'
build-osx-amd64:
runs-on: macos-10.15
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Check for Homebrew
Expand All @@ -63,6 +58,7 @@ jobs:
echo 'export CPPFLAGS="-I/usr/local/opt/llvm/include"' >> $GITHUB_ENV
- name: build
run: |
make mh CC=clang LIBS="$(pkg-config --cflags --libs libpcre2-8) -lpthread" CPPFLAGS="-target x86_64-apple-macos11" PROGNAME=mh-$(uname -o | tr '[:upper:]' '[:lower:]')-x86_64-apple-macos11
make mh CC=clang LIBS="$(pkg-config --cflags --libs libpcre2-8) -lpthread" PROGNAME=mh-$(uname -o | tr '[:upper:]' '[:lower:]')-$(uname -m)
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 58f23d3

Please sign in to comment.