Projects STRLCPY scan4all Commits 1195827c
🤬
  • ■ ■ ■ ■ ■
    .github/build/linux.yml
    skipped 15 lines
    16 16   - linux
    17 17   goarch:
    18 18   - amd64
    19  - - arm64
    20 19  archives:
    21 20  - format: zip
    22 21   
    skipped 3 lines
  • ■ ■ ■ ■ ■ ■
    .github/build/linuxarm64.yml
     1 +env:
     2 + - GO111MODULE=on
     3 +before:
     4 + hooks:
     5 + - go mod tidy
     6 +project_name: scan4all
     7 +builds:
     8 + - id: scan4all-linux
     9 + ldflags:
     10 + - -s -w
     11 + binary: scan4all
     12 + env:
     13 + - CGO_ENABLED=1
     14 + main: main.go
     15 + goos:
     16 + - linux
     17 + goarch:
     18 + - arm64
     19 +archives:
     20 +- format: zip
     21 + 
     22 +checksum:
     23 + name_template: "{{ .ProjectName }}-linux-checksums.txt"
     24 + 
  • ■ ■ ■ ■ ■ ■
    .github/workflows/build.yml
    skipped 48 lines
    49 49   env:
    50 50   GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    51 51   
     52 + build-linux-arm64:
     53 + runs-on: ubuntu-latest
     54 + steps:
     55 + - name: Code checkout
     56 + uses: actions/checkout@v2
     57 + with:
     58 + fetch-depth: 0
     59 + - uses: uraimo/run-on-arch-action@v2
     60 + name: Run commands
     61 + id: runcmd
     62 + with:
     63 + arch: armv6
     64 + distro: ubuntu18.04
     65 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     66 + - name: Set up Go
     67 + uses: actions/setup-go@v2
     68 + with:
     69 + go-version: 1.19
     70 + - name: Install Dependences
     71 + run: sudo apt install -yy libpcap-dev upx
     72 + 
     73 + - name: Run GoReleaser
     74 + uses: goreleaser/goreleaser-action@v2
     75 + with:
     76 + version: latest
     77 + args: release -f .github/build/linuxarm64.yml --rm-dist
     78 + env:
     79 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     80 + 
     81 + 
    52 82   build-windows:
    53 83   runs-on: windows-latest
    54 84   steps:
    skipped 15 lines
Please wait...
Page is in error, reload to recover