feat: update libdave + prebuilt library #47
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| pull_request: | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| LIBDAVE_VERSION: v1.1.0 | |
| jobs: | |
| libdave: | |
| strategy: | |
| matrix: | |
| runner: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-15-intel, windows-latest] | |
| fail-fast: false | |
| runs-on: ${{matrix.runner}} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.24 | |
| - name: Setup go.work | |
| run: | | |
| go work init . ./libdave ./golibdave | |
| - name: Install libdave | |
| run: | | |
| if [ "$RUNNER_OS" = "Windows" ]; then | |
| pwsh ./scripts/libdave_install.ps1 "$LIBDAVE_VERSION" | |
| else | |
| ./scripts/libdave_install.sh "$LIBDAVE_VERSION" | |
| fi | |
| - name: "[Windows Only] Install pkgconfiglite" | |
| if: runner.os == 'Windows' | |
| run: choco install pkgconfiglite | |
| - name: Test libdave | |
| run: | | |
| if [ "$RUNNER_OS" == "Windows" ]; then | |
| export PATH="$LOCALAPPDATA/libdave/bin:$PATH" | |
| export PKG_CONFIG_PATH="$LOCALAPPDATA/pkgconfig:$PKG_CONFIG_PATH" | |
| else | |
| export PKG_CONFIG_PATH="$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH" | |
| then | |
| go test ./libdave |