Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Apr 26, 2024
1 parent 35fb77f commit 8430c40
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 18 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/check-goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
check-goreleaser:
runs-on: ubuntu-latest

container:
image: ghcr.io/gythialy/golang-cross:v1.22.2-0@sha256:642fda874607057c34dfbb2d7fce93dfa37bdb9dbc0cc74835d9c3157a7a0e89

steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3

Expand All @@ -20,14 +23,14 @@ jobs:
go-version: '1.22'
check-latest: true

- name: install libyara-dev
run: |
sudo add-apt-repository -n -y "deb http://archive.ubuntu.com/ubuntu/ mantic main restricted universe multiverse"
sudo add-apt-repository -n -y "deb http://archive.ubuntu.com/ubuntu/ mantic-updates main restricted universe multiverse"
sudo add-apt-repository -n -y "deb http://archive.ubuntu.com/ubuntu/ mantic-backports main restricted universe multiverse"
sudo add-apt-repository -n -y "deb http://security.ubuntu.com/ubuntu mantic-security main restricted universe multiverse"
# - name: install libyara-dev
# run: |
# sudo add-apt-repository -n -y "deb http://archive.ubuntu.com/ubuntu/ mantic main restricted universe multiverse"
# sudo add-apt-repository -n -y "deb http://archive.ubuntu.com/ubuntu/ mantic-updates main restricted universe multiverse"
# sudo add-apt-repository -n -y "deb http://archive.ubuntu.com/ubuntu/ mantic-backports main restricted universe multiverse"
# sudo add-apt-repository -n -y "deb http://security.ubuntu.com/ubuntu mantic-security main restricted universe multiverse"

sudo apt update && sudo apt install libyara-dev -y
# sudo apt update && sudo apt install libyara-dev -y

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
Expand Down
41 changes: 30 additions & 11 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,43 @@ project_name: bincapz
before:
hooks:
- go mod tidy
- /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'

builds:
- id: bincapz
binary: bincapz
# - id: bincapz
# binary: bincapz
# main: ./
# goos:
# - darwin
# # - linux
# # - windows
# goarch:
# # - amd64
# - arm64
# # - arm
# flags:
# - -trimpath
# mod_timestamp: '{{ .CommitTimestamp }}'
# ldflags:
# - -X main.BuildVersion={{.Version}}
# env:
# - CGO_ENABLED=1

- id: darwin-amd64
binary: bincapz-darwin-amd64
no_unique_dist_dir: true
env:
- CC=o64-clang
- CXX=o64-clang++
- CGO_ENABLED=1
main: ./
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
- arm
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- -X main.BuildVersion={{.Version}}

signs:
- id: bincapz
Expand Down

0 comments on commit 8430c40

Please sign in to comment.