Skip to content

Commit

Permalink
github/workflows/test: Build dqlite dep manually
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Pelizäus <[email protected]>
  • Loading branch information
roosterfish committed Nov 25, 2024
1 parent deaa6f2 commit 56c1b8a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
workflow_dispatch:

env:
CGO_CFLAGS: -I/home/runner/go/deps/dqlite/include/
CGO_LDFLAGS: -L/home/runner/go/deps/dqlite/.libs/
LD_LIBRARY_PATH: /home/runner/go/deps/dqlite/.libs/
CGO_LDFLAGS_ALLOW: (-Wl,-wrap,pthread_create)|(-Wl,-z,now)
GOCOVERDIR: ${{ ( github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' ) && '/home/runner/work/microcloud/microcloud/cover' || '' }}

permissions:
Expand Down Expand Up @@ -86,12 +90,13 @@ jobs:

- name: Install dependencies
run: |
sudo add-apt-repository ppa:dqlite/dev -y --no-update
sudo apt-get update
sudo apt-get install --no-install-recommends -y libdqlite-dev pkg-config
sudo apt-get install --no-install-recommends -y pkg-config autoconf automake libtool make libuv1-dev libsqlite3-dev liblz4-dev
- name: Build
run: make
run: |
make deps
make
- name: Run static analysis
run: make check-static
Expand Down Expand Up @@ -119,6 +124,7 @@ jobs:
path: |
/home/runner/go/bin/microcloud
/home/runner/go/bin/microcloudd
/home/runner/go/bin/dqlite
retention-days: 1

system-tests:
Expand Down Expand Up @@ -361,9 +367,6 @@ jobs:

- name: Install dependencies
run: |
sudo add-apt-repository ppa:dqlite/dev -y --no-update
sudo apt-get update
sudo apt-get install --no-install-recommends -y libdqlite-dev pkg-config
go install github.com/axw/gocov/gocov@latest
go install github.com/AlekSi/gocov-xml@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
Expand Down

0 comments on commit 56c1b8a

Please sign in to comment.