Skip to content

WIP: initial import

WIP: initial import #1

Workflow file for this run

name: build
on:
push:
branches: "*"
jobs:
build:
strategy:
matrix:
target:
# - aarch64-linux-musl
# - armv7-linux-musleabihf
- x86_64-linux-musl
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-go@v4
with:
go-version: "1.17.13"
- run: |
patch -p1 < ../go-runtime.patch
cd src && ./make.bash
ls -lR bin
working-directory: go
# - uses: actions/upload-artifact@v3
# with:
# name: libpcap-${{ matrix.target }}.a
# path: libpcap/libpcap-${{ matrix.target }}.a
# publish:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v3
# with:
# path: artifacts
# - uses: actions/github-script@v6
# with:
# script: |
# const version = context.sha.substring(0, 8);
# github.rest.git.createRef({
# owner: context.repo.owner,
# repo: context.repo.repo,
# ref: `refs/tags/${version}`,
# sha: context.sha
# });
# core.setOutput('version', version);
# id: create-tag
# - uses: softprops/action-gh-release@v1
# with:
# tag_name: ${{ steps.create-tag.outputs.version }}
# files: artifacts/**/*
# needs: build