From a0222401f160d1cc3d64b6d5f495b05beb21710f Mon Sep 17 00:00:00 2001 From: Johan Mabille Date: Tue, 2 Apr 2024 04:07:48 +0200 Subject: [PATCH] Switched to GHA --- .github/workflows/linux.yml | 39 +++++++++++++++++++++++++++++++++++++ azure-pipelines.yml | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/linux.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..8635064 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,39 @@ +name: Linux +on: + workflow_dispatch: + pull_request: + push: + branches: [master] +concurrency: + group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }} + cancel-in-progress: true +defaults: + run: + shell: bash -e -l {0} +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + + steps: + + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set conda environment + uses: mamba-org/setup-micromamba@main + with: + environment-name: myenv + environment-file: environment-dev.yml + + - name: Configure using CMake + run: cmake -G Ninja -Bbuild -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DDOWNLOAD_GTEST=ON -DHAVE_ALL_DEPS=ON + + - name: Generate data for zlib 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 + run: | + export GTEST_FILTER="-xio_gdal_handler.read_vsigs" + make -j2 xtest diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 34b4156..be2c115 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -2,6 +2,6 @@ trigger: - master jobs: - - template: ./.azure-pipelines/azure-pipelines-linux.yml + # - template: ./.azure-pipelines/azure-pipelines-linux.yml - template: ./.azure-pipelines/azure-pipelines-osx.yml