Fix Linux Gitea workflow gates
This commit is contained in:
@@ -7,6 +7,11 @@ on:
|
||||
jobs:
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
# Ubuntu 24.04 also ships an older libopenjp2.so.7. Ensure both
|
||||
# pkg-config and the runtime loader select the audited 2.5.4 install.
|
||||
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig
|
||||
LD_LIBRARY_PATH: /usr/local/lib
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
@@ -19,6 +24,7 @@ jobs:
|
||||
cmake --build /tmp/openjpeg-build --parallel
|
||||
sudo cmake --install /tmp/openjpeg-build
|
||||
sudo ldconfig
|
||||
test "$(pkg-config --modversion libopenjp2)" = "2.5.4"
|
||||
- name: Build and test optional feature
|
||||
run: |
|
||||
cargo test -p libremetaverse-imaging --features jpeg2000
|
||||
|
||||
Reference in New Issue
Block a user