pass notify icon as pixbuf via D-bus #177
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: Go | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: './go.mod' | |
- name: Prepare simulator | |
run: | | |
curl -L https://github.com/slytomcat/yandex-disk-simulator/releases/latest/download/yandex-disk-simulator > yandex-disk | |
chmod a+x yandex-disk | |
- name: Test | |
run: | | |
export PATH=$(pwd):$PATH | |
go test -v --race -coverprofile cover.out ./... | |
- name: Format coverage | |
run: go tool cover -html=cover.out -o coverage.html | |
- name: Upload coverage to Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage_artifacts | |
path: coverage.html | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: './go.mod' | |
- name: Requirements | |
run: sudo apt-get install upx-ucl | |
- name: Build amd64 | |
run: | | |
GOOS=linux GOARCH=amd64 ./build.sh | |
- name: Upload a Build Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build_artifacts | |
path: | | |
yd-go | |
push: | |
needs: [build, test] | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download Artifacts | |
uses: actions/download-artifact@v4.1.7 | |
with: | |
name: build_artifacts | |
- name: draft new release and upload assets | |
env: | |
GH_TOKEN: ${{ secrets.TOKEN }} | |
run: | | |
gh release create "$(git branch --show-current)-$(git rev-parse --short HEAD)" ./yd-go |