Skip to content

update readme

update readme #36

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
test:
name: Test
strategy:
matrix:
go: [ '1.23' ]
uses: ./.github/workflows/go-test.yml
with:
go-version: ${{ matrix.go }}
build:
name: Build
needs: test
strategy:
matrix:
go: [ '1.23' ]
arch: [ 'amd64', 'arm64' ]
uses: ./.github/workflows/go-build.yml
with:
go-version: ${{ matrix.go }}
go-arch: ${{ matrix.arch }}
filename: egpu-switcher
version:
name: Extract Version
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.vars.outputs.tag }}
steps:
- id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
release:
name: Github Release
needs: [build, version]
strategy:
matrix:
binary: [ 'egpu-switcher-amd64', 'egpu-switcher-arm64' ]
uses: ./.github/workflows/github-release.yml
with:
binary: ${{ matrix.binary }}
aur:
name: Publish to AUR
needs: [build, version, release]
uses: ./.github/workflows/aur-release.yml
with:
version: ${{ needs.version.outputs.tag }}
secrets:
AUR_EMAIL: ${{ secrets.AUR_EMAIL }}
AUR_USERNAME: ${{ secrets.AUR_USERNAME }}
AUR_PRIVATE_KEY: ${{ secrets.AUR_PRIVATE_KEY }}
# TODO: Debian package
# package-deb:
# needs: build