mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-07-04 09:49:27 +00:00
Drop the libwaku build target and the now-redundant library/ include path; a single liblogosdelivery covers every package. The clone steps temporarily pin the unify-libs branch so CI is green before logos-delivery#3949 merges — the TODOs mark the one-line revert to master/HEAD once it lands. Also fix a pre-existing glued `cd`/`export` in the nightly daily-test step. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
72 lines
2.2 KiB
YAML
72 lines
2.2 KiB
YAML
name: Bindings Tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 2 * * *'
|
|
|
|
jobs:
|
|
Daily:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: "1.23"
|
|
|
|
- name: Clone logos-delivery
|
|
run: |
|
|
mkdir -p vendor
|
|
# TODO(logos-delivery#3949): drop --branch once unify-libs is on master.
|
|
git clone --depth 1 --branch unify-libs https://github.com/logos-messaging/logos-delivery.git vendor/logos-delivery
|
|
|
|
- name: Build liblogosdelivery
|
|
run: |
|
|
cd vendor/logos-delivery
|
|
echo "Building liblogosdelivery in $(pwd)"
|
|
make liblogosdelivery -j
|
|
cd ../..
|
|
|
|
- name: Verify paths
|
|
run: make -C pkg/kernel print-paths
|
|
|
|
- name: Verify liblogosdelivery artifacts
|
|
run: make -C pkg/kernel check-folders
|
|
|
|
- name: Install Go dependencies
|
|
run: |
|
|
echo "Install Go dependencies $(pwd)"
|
|
go mod download
|
|
go mod vendor
|
|
|
|
- name: Build waku bindings
|
|
run: |
|
|
export LOGOS_DELIVERY_DIR=$(pwd)/vendor/logos-delivery
|
|
export CGO_CFLAGS="-I${LOGOS_DELIVERY_DIR}/liblogosdelivery/"
|
|
export CGO_LDFLAGS="-L${LOGOS_DELIVERY_DIR}/build/ -llogosdelivery -Wl,-rpath,${LOGOS_DELIVERY_DIR}/build/"
|
|
make -C pkg/kernel build
|
|
|
|
- name: Increase ulimit
|
|
run: sudo sh -c "ulimit -n 8192"
|
|
|
|
- name: Run daily test
|
|
run: |
|
|
set -euo pipefail
|
|
export LOGOS_DELIVERY_DIR=$(pwd)/vendor/logos-delivery
|
|
export CGO_CFLAGS="-I${LOGOS_DELIVERY_DIR}/liblogosdelivery/"
|
|
export CGO_LDFLAGS="-L${LOGOS_DELIVERY_DIR}/build/ -llogosdelivery -Wl,-rpath,${LOGOS_DELIVERY_DIR}/build/"
|
|
cd pkg/kernel
|
|
go test -count=10 -p=1 -v -timeout=360m . | tee ../testlogs.log
|
|
|
|
- name: Upload daily test logs
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: daily-logs
|
|
path: testlogs.log
|