From: Wolf Vollprecht Date: Tue, 4 Jan 2022 17:59:17 +0000 (+0100) Subject: Run CI on Windows X-Git-Tag: archive/raspbian/1.2.1+ds1-1+rpi1^2~7^2~1^2~10^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0ddfd90994923a366ab238c646783ab6be7a17e7;p=zchunk.git Run CI on Windows --- 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