Skip to content

WIP: initial import

WIP: initial import #2

Workflow file for this run

name: build
on:
push:
branches: "*"
jobs:
build:
strategy:
matrix:
include:
# - target: aarch64-linux-musl
# goarch: arm64
# goos: linux
# - target: armv7-linux-musleabihf
# goarch: arm
# goos: linux
- target: x86_64-linux-musl
goarch: amd64
goos: linux
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 -d go -p1 < go-runtime.patch
(cd go/src && ./make.bash)
cp -r go /opt/
echo "PATH=/opt/go/bin:$PATH" >> $GITHUB_ENV
- run: |
which go
go version
make -C libkflow
env:
GOARCH: ${{ matrix.goarch }}
GOOS: ${{ matrix.goos }}
# - 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