Skip to content

Commit

Permalink
fixed #52 2022-08-01
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Aug 1, 2022
1 parent fcd14a3 commit 3ab30a0
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/build/mac_arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
project_name: scan4all
builds:
- id: scan4all-darwin
ldflags:
- -s -w
binary: scan4all
env:
- CGO_ENABLED=1
main: main.go
goos:
- darwin
goarch:
- arm64

archives:
- format: zip
replacements:
darwin: macOS

checksum:
name_template: "{{ .ProjectName }}-mac-arm64-checksums.txt"
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ on:
workflow_dispatch:

jobs:
build-mac-arm:
runs-on: macos-latest
steps:
- name: Code checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Install Dependences
run: brew install libpcap
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release -f .github/build/mac_arm64.yml --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-mac:
runs-on: macos-latest
steps:
Expand Down

0 comments on commit 3ab30a0

Please sign in to comment.