Skip to content

Build a Custom Spotty for a specific platform #41

Build a Custom Spotty for a specific platform

Build a Custom Spotty for a specific platform #41

name: Build a Custom Spotty for a specific platform
on:
workflow_dispatch:
inputs:
target_triple:
description: 'Target Triple (see https://github.com/cross-rs/cross#supported-targets)'
required: true
default: 'arm-unknown-linux-musleabi'
env:
CARGO_TERM_COLOR: always
KEYMASTER_CLIENT_ID: ${{ secrets.KEYMASTER_CLIENT_ID }}
jobs:
Custom-Build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Prepare build environment
run: |
curl -L https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-musl.tar.gz | tar xvz
mkdir -p releases
- name: Build
run: |
echo ${{ env.KEYMASTER_CLIENT_ID }} > src/client_id.txt
ls -l src
./cross build --release --target=${{ github.event.inputs.target_triple }} --no-default-features --features default-linux
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: spotty-custom
path: target/${{ github.event.inputs.target_triple }}/release/spotty
- run: |
echo 'Build succeeded for `${{ github.event.inputs.target_triple }}`' >> $GITHUB_STEP_SUMMARY