Skip to content

feat: add from Base62 helper #88

feat: add from Base62 helper

feat: add from Base62 helper #88

Workflow file for this run

name: Release
on:
push:
tags: [ 'v*' ]
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
include:
- target: x86-64-linux-gnu
goarch: amd64
goamd64: v1
cc: gcc
tar: linux_x86_64
- target: arm-rpi-linux-gnueabihf
goarch: arm
goarm: 6
cc: arm-rpi-linux-gnueabihf-gcc
tar: linux_armv6_rpi
- target: arm-linux-gnueabihf
goarch: arm
goarm: 6
cc: arm-linux-gnueabihf-gcc
tar: linux_armv6
- target: aarch64-linux-gnu
goarch: arm64
cc: aarch64-linux-gnu-gcc
tar: linux_arm64
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Build image
run: |
docker build \
--build-arg TARGET=${{ matrix.target }} \
--build-arg GOARCH=${{ matrix.goarch }} \
--build-arg GOARM=${{ matrix.goarm }} \
--build-arg GOAMD64=${{ matrix.goamd64 }} \
--build-arg CC=${{ matrix.cc }} \
-t go-librespot-build-${{ matrix.target }} \
-f Dockerfile.build \
.
- name: Compile binary
run: |
mkdir -p /tmp/out
docker run --rm \
--env COMMIT=${{ github.sha }} \
--env VERSION=${{ startsWith(github.ref_name, 'v') && github.ref_name || '' }} \
-v $PWD:/src \
go-librespot-build-${{ matrix.target }}
tar -zcvf /tmp/out/go-librespot_${{ matrix.tar }}.tar.gz go-librespot README.md
- name: Upload compiled binary
uses: actions/upload-artifact@v3
with:
name: binaries
path: /tmp/out
retention-days: 7
publish:
runs-on: ubuntu-24.04
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
steps:
- name: Download compiled binaries
uses: actions/download-artifact@v3
with:
name: binaries
path: /tmp/out
- name: Generate changelog
uses: jaywcjlove/changelog-generator@main
id: changelog
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter-author: (dependabot|renovate\\[bot\\]|dependabot\\[bot\\]|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
- name: Release binaries
uses: softprops/action-gh-release@v1
with:
body: |
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
files: /tmp/out/*