Skip to content

fix: properly handle recived beeper identifier #15

fix: properly handle recived beeper identifier

fix: properly handle recived beeper identifier #15

Workflow file for this run

name: Release binaries
on:
push:
tags:
- 'v*'
jobs:
release:
name: Release - ${{ matrix.platform.release_for }}
runs-on: ${{ matrix.platform.os }}
strategy:
matrix:
platform:
- release_for: Linux-x86_64
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
bin: w3registrar
name: w3registrar-linux-amd64
# - release_for: Linux-aarch64
# os: ubuntu-latest
# target: aarch64-unknown-linux-gnu
# bin: w3registrar
# name: w3registrar-linux-arm64
# - release_for: macOS-x86_64
# os: macos-latest
# target: x86_64-apple-darwin
# bin: w3registrar
# name: w3registrar-macos-amd64
# - release_for: macOS-aarch64
# os: macos-latest
# target: aarch64-apple-darwin
# bin: w3registrar
# name: w3registrar-macos-arm64
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform.target }}
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
protobuf-compiler \
cmake \
pkg-config \
clang \
llvm
# - name: Install macOS dependencies
# if: runner.os == 'macOS'
# run: |
# brew install \
# protobuf \
# cmake \
# llvm
- name: Build binary
if: ${{ !matrix.platform.use_cross }}
run: cargo build --verbose --release --target ${{ matrix.platform.target }}
- name: Prepare binary
run: |
cd target/${{ matrix.platform.target }}/release
cp ${{ matrix.platform.bin }} ${{ matrix.platform.name }}
- name: Upload binaries to release
uses: softprops/action-gh-release@v1
with:
files: target/${{ matrix.platform.target }}/release/${{ matrix.platform.name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}