Skip to content

Commit

Permalink
[build] Improve release binaries
Browse files Browse the repository at this point in the history
- Include architecture in the zip file name
- Build binaries for MacOS ARM64 too.
- Upload an artifact containing all release binaries.
  • Loading branch information
manugarg committed Jul 21, 2024
1 parent f85e12c commit 36e4eb3
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
include:
- os: ubuntu-latest
os_suffix: "ubuntu-x86_64"
- os: macos-latest
architecture: "macos-arm64"
- os: macos-13
architecture: "macos-x86_64"
- os: windows-latest
os_suffix: "windows-x86_64"
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -64,7 +73,7 @@ jobs:
- name: make non-windows dist
if: ${{ matrix.os != 'windows-latest' }}
run: |
DIST_OS_SUFFIX=${{ matrix.os }} make -C src dist
DIST_OS_SUFFIX=${{ matrix.os_suffix }} make -C src dist
ls -R src/*.zip
- name: make windows dist
Expand All @@ -86,6 +95,21 @@ jobs:
name: pacparser-dist-${{ matrix.os }}
path: src/dist

build-release-binaries:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download ubuntu cloudprober binaries
uses: actions/download-artifact@v4
with:
pattern: pacparser-*-latest-dist

- name: Upload pacparser release
uses: actions/upload-artifact@v2
with:
name: pacparser-release-binaries
path: pacparser-*.zip

python-module-build:
strategy:
matrix:
Expand Down

0 comments on commit 36e4eb3

Please sign in to comment.