Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aybabtme committed Nov 4, 2024
1 parent 0f57c86 commit f8e42cb
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release-dev-pro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Create a dev pro release

on:
workflow_dispatch:
push:
branches:
- master

permissions:
contents: write

jobs:
build:
name: "build"
strategy:
matrix:
go: [stable]
os:
- ubuntu-latest
- macos-latest
arch:
- arm64
- amd64
runs-on: ${{ matrix.os }}
env:
GOPRIVATE: "github.com/humanlogio/humanlog-pro"
GH_ACCESS_TOKEN_FOR_HUMANLOGPRO: ${{ secrets.GH_ACCESS_TOKEN_FOR_HUMANLOGPRO }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 1
steps:
- name: Set up Go 1
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git config --global --add safe.directory '*'
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/
- run: go install github.com/goware/modvendor@latest
- run: go mod vendor
- run: modvendor -copy="**/*.a **/*.h" -v
- run: go build -tags pro -o /tmp/humanlog-${{ matrix.os }}-${{ matrix.arch }} ./cmd/humanlog

0 comments on commit f8e42cb

Please sign in to comment.