Skip to content

Commit

Permalink
Merge pull request #175 from JohanMabille/gha_ci
Browse files Browse the repository at this point in the history
Switched to GHA
  • Loading branch information
JohanMabille committed Apr 2, 2024
2 parents 7b9a9b7 + a022240 commit 0205f8b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0205f8b

Please sign in to comment.