From ebf47e2cdfc79cdd5fb358fe8913307097e35290 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Wed, 22 Dec 2021 19:04:04 +0100 Subject: [PATCH] add github action --- .github/environment.yml | 11 +++++++++++ .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/environment.yml create mode 100644 .github/workflows/main.yml diff --git a/.github/environment.yml b/.github/environment.yml new file mode 100644 index 0000000..d8ada76 --- /dev/null +++ b/.github/environment.yml @@ -0,0 +1,11 @@ +name: zchunk_test_env +channels: +- conda-forge +dependencies: +- libcurl +- zstd +- meson +- c-compiler +- ninja +- pkg-config +- sel(osx): argp-standalone diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2600766 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: CI +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + + name: Compile and Run Tests + steps: + - uses: actions/checkout@v2 + - name: install mamba + uses: mamba-org/provision-with-micromamba@main + with: + environment-file: .github/environment.yml + - name: Compile zchunk + shell: bash -l {0} + run: | + meson builddir + cd builddir + ninja + - name: Run zchunk tests + shell: bash -l {0} + run: | + cd builddir + ninja test -- 2.30.2