Skip to content

Commit

Permalink
Merge pull request #176 from JohanMabille/gha_ci
Browse files Browse the repository at this point in the history
Fixed GHA
  • Loading branch information
JohanMabille authored Apr 2, 2024
2 parents 0205f8b + 0b67239 commit ce827df
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 101 deletions.
17 changes: 0 additions & 17 deletions .azure-pipelines/azure-pipelines-linux.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .azure-pipelines/azure-pipelines-osx.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .azure-pipelines/unix-build.yml

This file was deleted.

18 changes: 13 additions & 5 deletions .github/workflows/linux.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux
name: CI
on:
workflow_dispatch:
pull_request:
Expand All @@ -11,10 +11,12 @@ defaults:
run:
shell: bash -e -l {0}
jobs:
build:
runs-on: ubuntu-latest
unix:
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
7 changes: 0 additions & 7 deletions azure-pipelines.yml

This file was deleted.

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 ce827df

Please sign in to comment.