⬆️ Update dependency macos to v13 #75
Workflow file for this run
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 | |
on: push | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Install systray dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc libgtk-3-dev libayatana-appindicator3-dev | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
args: --timeout=5m | |
skip-build-cache: true | |
skip-pkg-cache: true | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Install systray dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc libgtk-3-dev libayatana-appindicator3-dev | |
- name: Test | |
env: | |
TZ: America/Chicago | |
run: go test ./... | |
build-linux: | |
name: Build (Linux) | |
runs-on: ubuntu-latest | |
needs: [lint, test] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Install systray dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc libgtk-3-dev libayatana-appindicator3-dev | |
- name: Build | |
run: go build -ldflags='-w -s' -trimpath | |
build-windows: | |
name: Build (Windows) | |
runs-on: windows-latest | |
needs: [lint, test] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Build | |
run: go build -ldflags='-w -s' -trimpath | |
build-macos: | |
name: Build (macOS) | |
runs-on: macos-13 | |
needs: [lint, test] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Build | |
run: ./hack/build-app.sh |