From 58f23d3555a166dd6b114d4e77adb55c8d7cdda4 Mon Sep 17 00:00:00 2001 From: Oz Tiram Date: Wed, 24 Jul 2024 12:51:07 +0200 Subject: [PATCH] ci: build on docker debian old version, build multiple mac os x binaries --- .github/workflows/release.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a70abfd..df6d479 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 @@ -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 @@ -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