Giter Site home page Giter Site logo

wasmerio / setup-wasmer Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 3.0 438 KB

GitHub action for setting up Wasmer

Home Page: https://github.com/marketplace/actions/setup-wasmer

License: MIT License

TypeScript 98.59% Shell 1.41%
wasmer wapm github-actions

setup-wasmer's Introduction

setup-wasmer

Tests

GitHub action for setting up Wasmer.

Features

  • Always uses the latest stable Wasmer build
  • Optionally lock onto a specific wasmer version
  • Cross platform (Linux, Mac, and Windows)
  • Automatically updates environment variables (So you can immediately start using Wasmer)
  • Fully tested

Usage

The easiest way to use this action is to use the latest stable version of Wasmer. This can be done by using the following configuration:

- name: Setup Wasmer
  uses: wasmerio/[email protected]

Here is an example using a specific version of Wasmer:

- name: Setup Wasmer
  uses: wasmerio/[email protected]
  with:
    version: '4.2.5'

Input

name type description
version optional specify the version of wasmer to install

Output

There is no output from this action

Caveats

setup-wasmer's People

Contributors

ayys avatar syrusakbary avatar wakeful-cloud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

samuraicrow ayys

setup-wasmer's Issues

Allow users to request a specific version when installing

This action will always install the latest stable build, however sometimes you want to use a specific version (e.g. v3.0.0-rc.2 because v2.3.0 is missing features you want).

It'd be nice if users were able to set the version number being used, falling back to the latest stable when not provided.

Maybe something like this:

- name: Setup Wasmer
  uses: wasmerio/setup-wasmer@v1
  with:
    version: "3.0.0-rc.2"

Wasmer setup fails on CI due to RequestError

Setup for wasmer fails with following error

Run wasmerio/setup-wasmer@v2
  with:
  env:
<snip>
Download the installer.
  (node:1767) UnhandledPromiseRejectionWarning: RequestError: Hostname/IP does not match certificate's altnames: Host: get.wasmer.io. is not in the cert's altnames: DNS:*.netlify.app, DNS:netlify.app
<snip>
UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

download fails due to 500 error

Download the installer.
  Downloaded 0K out of NaNK (0%)
  Downloaded 0K out of 0K (100%)
  Downloaded 0K out of NaNK (0%)
  Downloaded 0K out of 0K (100%)
  node:internal/process/promises:279
              triggerUncaughtException(err, true /* fromPromise */);
              ^
  
  HTTPError: Response code 500 (Internal Server Error)
      at Request._onResponseBase (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:103623)
      at Request._onResponse (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:104056)
      at ClientRequest.<anonymous> (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:104276)
      at Object.onceWrapper (node:events:6[28](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:29):26)
      at ClientRequest.emit (node:events:525:35)
      at ClientRequest.e.emit (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:38646)
      at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
      at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
      at Socket.socketOnData (node:_http_client:534:22)
      at Socket.emit (node:events:513:28) {
    code: undefined,
    timings: {
      start: 169[30](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:31)67888719,
      socket: 1693067888719,
      lookup: 1693067888720,
      connect: 1693067888728,
      secureConnect: undefined,
      upload: 1693067888728,
      response: 16930679[34](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:35)577,
      end: 1693067934616,
      error: undefined,
      abort: 1693067934618,
      phases: {
        wait: 0,
        dns: 1,
        tcp: 8,
        tls: undefined,
        request: 0,
        firstByte: 45849,
        download: [39](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:40),
        total: [45](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:46)899
      }
    }
  }

Great work on Wasmer actions!

Hi @Wakeful-Cloud, we just discovered this repo for using Wasmer/WAPM in Github actions... and we love it!

We would love to integrate into the Wasmer ecosystem, so we can promote it officially! (you will continue being the owner and maintainer)

Let me know your thoughts!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.