diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 136ca22..f9e31db 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -19,6 +19,12 @@ jobs: architecture: x86_64 binary-postfix: "" use-cross: false + - os: macos-latest + os-name: macos + target: aarch64-apple-darwin + architecture: arm64 + binary-postfix: "" + use-cross: false - os: ubuntu-latest os-name: linux target: x86_64-unknown-linux-gnu @@ -57,6 +63,10 @@ jobs: - name: Install dependencies shell: bash run: | + if [[ ${{ matrix.job.target }} == aarch64-apple-darwin ]]; then + rustup target add aarch64-apple-darwin + sudo xcode-select -s /Applications/Xcode_12.4.app && sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/* + fi if [[ ${{ matrix.job.os }} == ubuntu-latest ]]; then sudo apt update sudo apt-get install -y libdbus-1-dev diff --git a/README.md b/README.md index af9b192..6b8698a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ $ sleep 5 || sup -m "Hello world!" # Send notification only on failure # Currently supported architectures - x86_64 -- aarch64 (e.g. Raspberry Pi 4b) +- aarch64 (e.g. Raspberry Pi 4b, Apple M1) ## Currently supported notification targets - local (i.e. System notifications, this is provided by the great `notifica` crate) @@ -79,7 +79,6 @@ OPTIONS: # TODO - [ ] Add support for 32b (aarch32 and i686/386) linux builds -- [ ] Add support for Apple M1 builds - [ ] Add custom webhook destination - [ ] Add tests - [ ] Add documentation