tiger-lib 1.17.0

Library used by the tools ck3-tiger, vic3-tiger, and imperator-tiger. This library holds the bulk of the code for them. It can be built either for ck3-tiger with the feature ck3, or for vic3-tiger with the feature vic3, or for imperator-tiger with the feature imperator, but not both at the same time.
Documentation
on:
  push:
    branches:
      - test-windows

name: Test Windows

jobs:
  build:
    strategy:
      matrix:
        include:
          - os: windows-latest
            name: windows
            extension: .exe
            archive: zip
    name: ${{ matrix.name }} build
    runs-on: ${{ matrix.os }}
    steps:

      - name: Checkout sources
        uses: actions/checkout@v2

      - name: Install stable toolchain
        uses: actions-rust-lang/setup-rust-toolchain@v1

      - name: Get version
        id: version
        shell: bash
        run: |
          version=v$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
          pkgdir="ck3-tiger-${{ matrix.name }}-$version"
          echo "::set-output name=version::$version"
          echo "::set-output name=pkgdir::$pkgdir"

      - name: Build
        run: cargo build --release -p ck3-tiger

      - name: Create output dir
        shell: bash
        run: |
          mkdir ${{ steps.version.outputs.pkgdir }}
          cp -p README.md filter.md TODO.md CONTRIBUTORS.md LICENSE ck3-tiger.conf target/release/ck3-tiger${{ matrix.extension }} target/release/ck3-tiger-auto${{ matrix.extension }} ${{ steps.version.outputs.pkgdir }}

      - name: Archive .zip
        uses: vimtor/action-zip@v1
        if: ${{ matrix.archive == 'zip' }}
        with:
          files: ${{ steps.version.outputs.pkgdir }}/
          dest: ${{ steps.version.outputs.pkgdir }}.zip

      - name: Archive .tar.gz
        if: ${{ matrix.archive == 'tar.gz' }}
        run: tar cfvz ${{ steps.version.outputs.pkgdir }}.tar.gz  ${{ steps.version.outputs.pkgdir }}/

      - name: Upload Archive
        uses: actions/upload-artifact@v4
        with:
          name: archives
          path: ${{ steps.version.outputs.pkgdir }}.${{ matrix.archive }}
          if-no-files-found: error