Skip to content

Commit

Permalink
Implement action
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilliamson committed Dec 21, 2020
1 parent a912c0e commit 98317e2
Show file tree
Hide file tree
Showing 8 changed files with 9,970 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
wabt-version: ["1.0.20"]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:

- uses: actions/checkout@v2

- name: Use wabt ${{ matrix.wabt-version }}
uses: ./
with:
wabt-version: ${{ matrix.wabt-version }}

- run: wat2wasm --help
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules/
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# setup-wabt-action

This actions adds the [wabt](https://github.com/WebAssembly/wabt) binaries to PATH.

## Usage

```yaml
- name: Use wabt ${{ matrix.wabt-version }}
uses: mwilliamson/setup-wabt-action@v1
with:
wabt-version: "1.0.20"
```
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: 'Set up wabt'
description: 'Set up a specific version of wabt and add the command-line tools to the PATH'
inputs:
wabt-version:
description: 'The wabt version'
required: true
runs:
using: 'node12'
main: 'dist/index.js'
Loading

0 comments on commit 98317e2

Please sign in to comment.