message: Add windows-gnu workflow
diff: @@ -264,6 +264,42 @@ jobs:
  if-no-files-found: error
  retention-days: 2
  + windows_gnu:
  + name: Windows GNU
  + runs-on: windows-2019
  + steps:
  + - uses: actions/checkout@v2
  + - uses: dtolnay/rust-toolchain@stable
  + with:
  + toolchain: 1.61
  + target: x86_64-pc-windows-gnu
  + - name: Setup Rust target
  + run: |
  + mkdir -p .cargo
  + cat << EOF > .cargo/config.toml
  + [build]
  + target = "x86_64-pc-windows-gnu"
  + EOF
  + - name: Build Wasmer CLI without LLVM
  + run: |
  + cargo build --release --target x86_64-pc-windows-gnu --manifest-path lib/cli/Cargo.toml --features cranelift,singlepass,wasmer-artifact-create,static-artifact-create,wasmer-artifact-load,static-artifact-load,webc_runner --bin wasmer
  + - name: Build Wasmer C-API without LLVM
  + run: |
  + cargo build --release --target x86_64-pc-windows-gnu --manifest-path lib/c-api/Cargo.toml --no-default-features --features wat,compiler,wasi,middlewares,webc_runner --features cranelift,singlepass,wasmer-artifact-create,static-artifact-create,wasmer-artifact-load,static-artifact-load
  + - name: Build Wapm binary
  + run: |
  + make build-wapm
  + - name: Dist
  + run: |
  + make distribution
  + - name: Upload Artifacts
  + uses: actions/upload-artifact@v2
  + with:
  + name: 'wasmer-windows-gnu64'
  + path: dist
  + if-no-files-found: error
  + retention-days: 2
  +
  linux_aarch64:
  name: Linux aarch64
  runs-on: ubuntu-latest
  @@ -331,7 +367,7 @@ jobs:
  retention-days: 2
  release:
  - needs: [setup, build, linux_aarch64]
  + needs: [setup, build, linux_aarch64, windows_gnu]
  runs-on: ubuntu-latest
  if: needs.setup.outputs.DOING_RELEASE == '1' || github.event.inputs.release != ''
  steps:
  @@ -385,6 +421,15 @@ jobs:
  asset_path: artifacts/wasmer-linux-aarch64/wasmer.tar.gz
  asset_name: wasmer-linux-aarch64.tar.gz
  asset_content_type: application/gzip
  + - name: Upload Release Asset Windows gnu64
  + uses: actions/upload-release-asset@v1
  + env:
  + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  + with:
  + upload_url: ${{ steps.create_release.outputs.upload_url }}
  + asset_path: artifacts/wasmer-windows-gnu64/wasmer.tar.gz
  + asset_name: wasmer-windows-gnu64.tar.gz
  + asset_content_type: application/gzip
  - name: Upload Release Asset Linux amd64 (musl)
  id: upload-release-asset-linux-musl-amd64
  uses: actions/upload-release-asset@v1
  