Skip to content

Commit 0205f8b

Browse files
authored
Merge pull request #175 from JohanMabille/gha_ci
Switched to GHA
2 parents 7b9a9b7 + a022240 commit 0205f8b

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

.github/workflows/linux.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Linux
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
defaults:
11+
run:
12+
shell: bash -e -l {0}
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
19+
steps:
20+
21+
- name: Checkout code
22+
uses: actions/checkout@v3
23+
24+
- name: Set conda environment
25+
uses: mamba-org/setup-micromamba@main
26+
with:
27+
environment-name: myenv
28+
environment-file: environment-dev.yml
29+
30+
- name: Configure using CMake
31+
run: cmake -G Ninja -Bbuild -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DDOWNLOAD_GTEST=ON -DHAVE_ALL_DEPS=ON
32+
33+
- name: Generate data for zlib test
34+
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))'
35+
36+
- name: Build and run xtensor-io tests
37+
run: |
38+
export GTEST_FILTER="-xio_gdal_handler.read_vsigs"
39+
make -j2 xtest

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ trigger:
22
- master
33

44
jobs:
5-
- template: ./.azure-pipelines/azure-pipelines-linux.yml
5+
# - template: ./.azure-pipelines/azure-pipelines-linux.yml
66
- template: ./.azure-pipelines/azure-pipelines-osx.yml
77

0 commit comments

Comments
 (0)