Skip to content

Commit

Permalink
feat: build binaries for Mac (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejgray authored Aug 17, 2024
1 parent 10440b4 commit e118de5
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,30 @@ permissions:

jobs:
build-binaries:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
target:
os: [ubuntu-latest, macos-latest]
target:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- armv7-unknown-linux-gnueabihf
- arm-unknown-linux-gnueabihf # This is for ARMv6
- arm-unknown-linux-gnueabihf
- x86_64-apple-darwin
- aarch64-apple-darwin
exclude:
- os: ubuntu-latest
target: x86_64-apple-darwin
- os: ubuntu-latest
target: aarch64-apple-darwin
- os: macos-latest
target: x86_64-unknown-linux-gnu
- os: macos-latest
target: aarch64-unknown-linux-gnu
- os: macos-latest
target: armv7-unknown-linux-gnueabihf
- os: macos-latest
target: arm-unknown-linux-gnueabihf

steps:
- uses: actions/checkout@v4
Expand All @@ -47,7 +63,11 @@ jobs:
mkdir -p release
cp target/${{ matrix.target }}/release/ovos_messagebus release/ovos_messagebus-${{ matrix.target }}
cd release && tar czvf ovos_messagebus-${{ matrix.target }}.tar.gz ovos_messagebus-${{ matrix.target }}
sha256sum ovos_messagebus-${{ matrix.target }}.tar.gz > ovos_messagebus-${{ matrix.target }}.tar.gz.sha256
if [[ "$OSTYPE" == "darwin"* ]]; then
shasum -a 256 ovos_messagebus-${{ matrix.target }}.tar.gz > ovos_messagebus-${{ matrix.target }}.tar.gz.sha256
else
sha256sum ovos_messagebus-${{ matrix.target }}.tar.gz > ovos_messagebus-${{ matrix.target }}.tar.gz.sha256
fi
- name: Upload Binary Artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit e118de5

Please sign in to comment.