build(deps): bump golang.org/x/net from 0.19.0 to 0.23.0 #151
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: build | |
'on': | |
push: | |
pull_request: | |
permissions: {} | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- id: deps | |
name: Install dependencies | |
run: | | |
docs/ndndpdk-depends.sh -y --node=0 --go=0 --dpdk=0 --spdk=0 | |
echo meson=$(meson --version) >> $GITHUB_OUTPUT | |
sudo update-alternatives --install /usr/bin/go go $(command -v go) 1 | |
- name: Cache DPDK and SPDK | |
uses: actions/cache@v4 | |
with: | |
path: ~/setup-dpdk | |
key: ${{ steps.deps.outputs.meson }}_20231213 | |
- uses: yoursunny/setup-dpdk@main | |
with: | |
dpdk-version: v23.11 | |
spdk-version: c47b9b42589d27dd5fb2598d89fe1bf2521b0f07 | |
- name: Build NDN-DPDK in debug mode | |
run: | | |
corepack pnpm install | |
make | |
sudo make install | |
for D in sample/activate sample/benchmark sample/status; do | |
pushd $D | |
corepack pnpm install | |
popd | |
done | |
sudo make uninstall | |
env: | |
NDNDPDK_MK_THREADSLEEP: 1 | |
- name: Run required unit tests | |
run: | | |
echo 'bdev|disk|ethface|fetch|fileserver|fwdp|memifface|memiftransport|tgconsumer|tgproducer' >~/acceptable-failures.txt | |
MK_GOTEST_FILTER="/$(cat ~/acceptable-failures.txt)/ d" make test | |
env: | |
NDNDPDK_MK_THREADSLEEP: 1 | |
- name: Run optional unit tests | |
run: | | |
MK_GOTEST_FILTER="/$(cat ~/acceptable-failures.txt)/! d" make test | |
env: | |
NDNDPDK_MK_THREADSLEEP: 1 | |
continue-on-error: true | |
- name: Check code style | |
run: | | |
make lint | |
git diff --exit-code | |
- name: Build docs | |
run: make doxygen | |
- name: Build docs site | |
run: mk/netlify.sh | |
if: ${{ github.repository == 'yoursunny/ndn-dpdk' && github.event_name == 'push' }} | |
- name: Deploy docs site | |
uses: nwtgck/[email protected] | |
with: | |
publish-dir: ./build/netlify/ | |
production-deploy: true | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-message: ${{ github.sha }} ${{ github.run_id }} | |
enable-pull-request-comment: false | |
enable-commit-comment: false | |
enable-commit-status: false | |
enable-github-deployment: false | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: a0fbfa66-eecb-46d0-9e0b-093ddd1d0fad | |
if: ${{ github.repository == 'yoursunny/ndn-dpdk' && github.event_name == 'push' }} | |
docker: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: docker/build-push-action@v5 | |
with: | |
tags: ndn-dpdk | |
build-args: | | |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 | |
DEPENDS_ARGS='-Ddisable_drivers=common/cnxk,common/dpaax,net/bnxt' | |
MAKE_ENV=NDNDPDK_MK_RELEASE=1 | |
- name: Show image size | |
run: docker image inspect -f '{{.Size}}' ndn-dpdk | |
- name: List files in image | |
run: docker run --rm ndn-dpdk find /usr/local | |
library: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Install TinyGo | |
run: | | |
wget -nv https://github.com/tinygo-org/tinygo/releases/download/v${TINYGO_VERSION}/tinygo_${TINYGO_VERSION}_amd64.deb | |
sudo dpkg -i tinygo_${TINYGO_VERSION}_amd64.deb | |
working-directory: /tmp | |
env: | |
TINYGO_VERSION: "0.30.0" | |
- name: Build for Linux without cgo | |
run: | | |
go build -v -o /dev/null ./ndn/... | |
go build -v -o /dev/null ./cmd/ndndpdk-ctrl | |
go build -v -o /dev/null ./cmd/ndndpdk-godemo | |
env: | |
CGO_ENABLED: 0 | |
- name: Build for Windows without cgo | |
run: | | |
go build -v -o /dev/null ./ndn/... | |
env: | |
CGO_ENABLED: 0 | |
GOOS: windows | |
- name: Build with TinyGo | |
run: | | |
tinygo build -o /dev/null -target=wasm ./ndn/ndntestenv/tiny | |
make -C sample/wasm | |
continue-on-error: true # https://github.com/tinygo-org/tinygo/issues/4120 |