From 0ddfd90994923a366ab238c646783ab6be7a17e7 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Tue, 4 Jan 2022 18:59:17 +0100 Subject: [PATCH] Run CI on Windows --- .github/environment.yml | 1 + .github/workflows/main.yml | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/environment.yml b/.github/environment.yml index 8206531..92d7114 100644 --- a/.github/environment.yml +++ b/.github/environment.yml @@ -10,3 +10,4 @@ dependencies: - pkg-config - openssl - sel(osx): argp-standalone +- sel(win): cmake \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2600766..d33adad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] name: Compile and Run Tests steps: @@ -24,12 +24,29 @@ jobs: environment-file: .github/environment.yml - name: Compile zchunk shell: bash -l {0} + if: runner.os != 'Windows' run: | meson builddir cd builddir ninja - name: Run zchunk tests shell: bash -l {0} + if: runner.os != 'Windows' run: | cd builddir ninja test + - name: Compile zchunk + shell: cmd /C CALL {0} + if: runner.os == 'Windows' + run: | + CALL micromamba activate zchunk_test_env + meson setup builddir + meson compile -C builddir + # TODO tests are not yet built + # - name: Run zchunk tests + # shell: cmd /C CALL {0} + # if: runner.os == 'Windows' + # run: | + # micromamba activate zchunk_test_env + # cd builddir + # ninja test -- 2.30.2