feat: add trayicon with ping #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build macOS App and DMG | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-latest, macos-arm64 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.22' | |
- run: go build -o ipingtray | |
- run: go install github.com/machinebox/appify@latest | |
- name: Create macOS app | |
run: appify -name "IPingTray" -icon docs/icon.png ipingtray | |
- name: Install create-dmg | |
run: npm install -g create-dmg | |
- name: Create DMG | |
run: create-dmg './IPingTray.app' | |
- name: Upload DMG artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ipingtray-dmg-${{ matrix.os }} | |
path: IPingTray.dmg |