Skip to content

Commit

Permalink
Fixed GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille committed Apr 2, 2024
1 parent 0205f8b commit 2ce627f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ defaults:
shell: bash -e -l {0}
jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-12]

steps:

Expand All @@ -31,9 +33,15 @@ jobs:
run: cmake -G Ninja -Bbuild -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DDOWNLOAD_GTEST=ON -DHAVE_ALL_DEPS=ON

- name: Generate data for zlib test
working-directory: build/test
run: python -c 'import struct, zlib; open("files/test.zl", "wb").write(zlib.compress(struct.pack("4d", 3.0, 2.0, 1.0, 0.0), level=1))'

- name: Build and run xtensor-io tests
- name: Build
working-directory: build
run: cmake --build . --target test_xtensor_io_lib --parallel 8

- name: Run tests
working-directory: build/test
run: |
export GTEST_FILTER="-xio_gdal_handler.read_vsigs"
make -j2 xtest
./test_xtensor_io_lib
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ trigger:

jobs:
# - template: ./.azure-pipelines/azure-pipelines-linux.yml
- template: ./.azure-pipelines/azure-pipelines-osx.yml
#- template: ./.azure-pipelines/azure-pipelines-osx.yml

1 change: 1 addition & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ channels:
dependencies:
# Build dependencies
- cmake
- ninja
# Host dependencies
- openimageio=2.2.7
- libsndfile=1.0.30
Expand Down

0 comments on commit 2ce627f

Please sign in to comment.