Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Publish Binaries 🛠️

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main

permissions:
id-token: write
contents: write
packages: write

concurrency:
group: binaries-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: uname -s
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential clang-tools-14 git libssl-dev pkg-config protobuf-compiler libudev-dev
sudo apt-get clean
- name: Setup Go 1.24
uses: actions/setup-go@v5
with:
go-version: 1.24
- name: Setup rust 1.85.1
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build
run: make
- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files: migrate-masp-events
draft: true
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
branches:
- main

concurrency:
group: docker-${{ github.ref }}
cancel-in-progress: true

permissions:
id-token: write
contents: write
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BIN := migrate-masp-events
RUSTLIB := libparse.a

OS := $(uname -s)
OS := $(shell uname -s)

.PHONY: all
all: $(BIN)
Expand All @@ -22,7 +22,7 @@ fmt:
go fmt github.com/heliaxdev/migrate-masp-events/proto/types

$(BIN): $(RUSTLIB)
ifeq ($(SPECIAL),"Linux")
ifeq ($(OS),Linux)
env CGO_ENABLED=1 CGO_LDFLAGS=-lm go build
else
env CGO_ENABLED=1 go build
Expand Down
Loading